Class

MKLocalSearch.Response

The results from a map-based search.

Overview

You do not create instances of this class directly. After initiating a map search using an MKLocalSearch object, MapKit passes an instance of this class to your completion handler.

Topics

Getting the Search Results

var mapItems: [MKMapItem]

An array of map items representing the search results.

var boundingRegion: MKCoordinateRegion

The map region that encloses the returned search results.

Relationships

Inherits From

Conforms To

See Also

Performing the Search

func start(completionHandler: MKLocalSearch.CompletionHandler)

Starts the search and delivers the results to the specified completion handler.

typealias MKLocalSearch.CompletionHandler

A completion handler block for a search operation.

var isSearching: Bool

A Boolean indicating whether the search is currently in progress.

func cancel()

Cancels an in-progress search operation.