1. Use of the mapkit framework
* Prerequisites for using the mapkit framework
> Import framework
> Import the main header file: # import <mapkit/mapkit. h>
* Usage instructions for the mapkit framework
> In the mapkit framework, the prefixes of all data types are MK.
> Mapkit has an important UI control for map display.
2. Map type
* You can set the map type by setting the mapviewtype of mkmapview.
> Mkmaptypestandard: normal map (left)
> Mkmaptypesatellite: satellite cloud map (image Center)
> Mkmaptypehybrid: A general map overwrites a satellite cloud map (right)
3. Tracking and displaying User Locations
* Set the usertrackingmode attribute of mkmapview to track and display the current user location.
Mkusertrackingmodenone: Do not trace the user's location mkusertrackingmodefollow: trace and display the user's current location on the map mkusertrackingmodefollowwithheading: trace and display the user's current location on the map, the map will rotate along the user's forward direction
Is the tracking effect> the blue luminous dot is the current position of the user> the blue luminous origin, the professional term is "pin"
Mapkit Usage Details