Instance Method

initWithRequest:

Initializes and returns a search object configured with the specified parameters.

Declaration

- (instancetype)initWithRequest:(MKLocalSearchRequest *)request;

Parameters

request

The search request information. This parameter must not be nil.

Return Value

An initialized search object.

Discussion

This method stores a copy of the object in the request parameter. So any changes you make to your request object after calling this method are ignored.

See Also

Creating a Search Request

MKLocalSearchRequest

The parameters to use when searching for points of interest on the map.

MKLocalSearchResultType

Options that indicate types of search results.