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.
iOS SDK 8.4
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.