The function of the map is always a little bit of a problem
The use of High German SDK need to configure the development environment, the official website is very clear.
1 display map, positioning, display the current location.
You need to import the function of the header file, declare global variables, proxy methods, etc..
Initialize the map, the controller is about to show the amount of time to locate and track the user, where the parameters do not understand, then there are comments into the busy busy.
By the way。 IOS8 positioning need to add the following NSLocationAlwaysUsageDescription field in info.plist
NSLocationWhenInUseUsageDescription always access to user location during the application to access the user location
you need to add a line, type String, behind the text not what can not write (the first location pop-up boxes displayed words). I see someone two fill up a write YES a NO… Pit!!!
When the positioning is successful, the callback method will be used to obtain the user’s latitude and longitude
When you click on the map to locate the annotation to carry out anti geocoding to encode the query, get the current user’s address location to replace the location of the title and sub title
The results are as follows..
2 display user information
Init search class. Gets the user’s current location via the POI peripheral request
Callback method in the POI search to the address stored in the array, refresh tableview
The results are as follows