IOS third-party-Baidu map SDK (1), iossdk
Recently, when the project is busy, I want to familiarize myself with Baidu map methods. Based on Baidu map 2.10.0, I wrote a demo and wrote a blog to record it.
I copied a previously written graph directly...
Set a file to. mm
- Configure the development environment
1. Introduce the system package
2. Add-ObjC to TARGETS-> Build Settings-> Other Linker Flags.
3. confirm that the mapapi. bundle file is added to the project and the method is correct. You cannot delete or modify the content in the files folder.
4. Add Baidu Map framework
5. Call the header file
# Import <baidumapi_base/BMKBaseComponent. h> // introduce all base-related header files # import <BaiduMapAPI_Map/BMKMapComponent. h> // introduce all header files of the map function # import <baidumapi_search/BMKSearchComponent. h> // introduce all header files of the search function # import <BaiduMapAPI_Cloud/BMKCloudSearchComponent. h> // introduce all header files of the cloud search function # import <BaiduMapAPI_Location/BMKLocationComponent. h> // introduce all header files of the positioning function # import <BaiduMapAPI_Utils/BMKUtilsComponent. h> // introduce all the header files of the computing tool # import <baidumapi_radar/BMKRadarComponent. h> // introduce all the header files of the peripheral radar function # import <BaiduMapAPI_Map/BMKMapView. h> // only introduce a single header file