Skip to content
Branch: master
Find file History
This branch is even with robovm:master.

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
AssetCatalog.xcassets
Classes
MapSearch.xcodeproj
en.lproj
Info.plist
LICENSE.txt
Launch.storyboard
Prefix.pch
ReadMe.md
main.m

ReadMe.md

MapSearch

Description:

Demonstrates how to programmatically search for map-based addresses and points of interest using the MKLocalSearch class. It initiates a search for map-based content using a natural language string. A user can type "coffee", press search and it will find all the coffee places nearby. The places found are centered around the user's current location. Once the search results have been found, the sample shows various ways to display the results.  It demonstrates how to use MKLocalSearchCompletionHandler and populate the UITableView with the search results. Also demonstrates checking and requesting location services authorization, introduced in iOS 8. Authorization is requested immediately before location services are needed, after the "Search" button is tapped.

Each found place can be viewed in its own MKMapView to show a single annotation or a cluster of annotations describing the search results.

Build Requirements

iOS SDK 8.4

Runtime Requirements

iOS 8.4 or later.

Changes from Previous Versions

Version 1.1 - Adopted iOS 8 location services authorization. Coding style updates.

Version 1.0 - First Release

Copyright (C) 2013, 2015 Apple Inc. All rights reserved.

You can’t perform that action at this time.