One. Download Map package
1. Link Address: http://lbs.amap.com/api/ios-sdk/download/
2. Need to download the package and import the package
(1) mamapkit-5.framework 2D map SDK
(2) Amapfoundationkit-6.framework Basic SDK (required), the function of setting key will be transferred to the base package to complete
(3) Amapsearchkit.framework Search SDK
Note: I do not know why (maybe I downloaded the wrong, or I am wrong, the package with "-" the import will not find the package). I try to use this three package from the official demo, it's OK to import.
3. Import the introduced resource file Amap.bundle.
Amap.bundle in the Resources folder of Mamapkit.framework, the Amap.bundle resource file stores images such as location, default PIN label gaze, and can be exploited using these resource images.
Select the project name in the left-hand directory, select Add files to "project name" from the context menu, select the Amap.bundle file from the Mamapkit.framework->resources file, and tick "Copy items if needed" check box, click the Add button to add the resource file to the project.
4. library files that need to be introduced
6. Set Request permissions
Add-objc,c capitalization to the Targets->build settings->other Linker Flags .
7. In APPDELEGATE.M.
Import
#import <AMapFoundationKit/AMapFoundationKit.h>
-(BOOL) Application: (UIApplication *) application didfinishlaunchingwithoptions: (nsdictionary *) launchOptions { // set Appkey is in the base package @" e941d2c63851ea4c47518796ab47530e " ; return YES;}
8. Compile the success. Ok
ios-Map-Manual environment construction