Recently in the application of the map, the customer let the map Library of gold, now is finally finished, so all the way, really tasted the sour spicy ah, online gold resources, can say less and less, available resources than the Giant panda also less, really let the national treasure embarrassed Ah, have to say, cherish life, away from. You know!
Nonsense don't say that started our Gaudeku introduction
(1). Start Xcode, create a project, select "Create a new Xcode project" on the launch page, jump to the new project page and select the Ios>application>single View app type.
(2). In the left-hand directory of the project, right-click the project name Mapsdk_demo, select Add Files to "Mapsdk_demo" ..., in the popup dialog box, select the path to the header file that is provided in the MapABC map API iOS version, select " Copyitems into Destination Group's folder (if needed), click Add to copy the Include folder to the project directory at the same time.
(3) Click on the project name Mapsdk_demo, select Targets>mapsdk_demo>build Settings set the relevant parameters, select Search Paths>header Search under the right Information window. Paths, enter the path where the MapABC map Apiios masthead file is located, where the Include folder is placed in this project directory, and the path is "./include/**", note: no double quotes
Configure a static library
Developing map capabilities on IOS devices requires referencing the Map development library file LIBMAMAPKIT.A.
MapABC Map API provides the Map development library file Lib includes two files, one is suitable for the iphone simulator debug-iphonesimulator lib file, and the other is for the iphone real machine Release-iphoneo S lib files, you can reference and configure them according to the type of use, add references and configure them as follows
(1) in the left-hand directory of the project, right-click the project name Mapsdk_demo, select Add Files to "Mapsdk_demo" ..., in the dialog box that pops up, select the path of the Map development library file Lib, and the steps above (2) to introduce the section header file. When introduced, the Lib folder is copied to the project directory at the same time. (2) Click on the project name Mapsdk_demo, select Targets>mapsdk_demo>build Settings set the relevant parameters. In the Information window on the right, select Linking>other Linker Flags, enter-all_load and-lmamapkit in turn,
(3) Click on the project name Mapsdk_demo, select Targets>mapsdk_demo>build Settings, and set the relevant parameters. In the Right Information window, select Search path>library search path, set the link path to the Map library file (librarysearch path), where the Lib folder is located under this project directory, enter "./lib/$ ( CONFIGURATION) $ (effective_platform_name) ", you can also click on" Librarysearch path ", the Debug is not Release is entered into the corresponding Lib library path, the emulator lib file path is". Lib/debug-iphonesimulator "; The real-machine lib file path is"./lib/release-iphoneos ".
Introducing the relevant configuration file
The Map_config.xml file can be used to configure map drawing address, map display level, and real-time traffic refresh time, etc., introduced in the same way (2).
The Mapabc.bundle file stores resource images such as positioning, default pin tag gaze graphs, and you can use their resources for development, in the same way (2)
Vector maps involve metafile, which is the file provided by assets. You need to copy the assets folder to the project directory, then, in the left-hand directory of the project, right-click the project name Mapsdk_demo, select Add Files to "Mapsdk_demo" ..., select the path of assets in the popup dialog, select Create Folder reference for any added folder
Introduction of other relevant frameworks
In addition to the Uikit.framework, Foundation.framework, Coregraphics.framework, Coredata.framework, which are introduced by default in the project, the Libz.dylib and Lib should be introduced. Xml2.dylib, Coretext.framework, Quartzcore.framework, Systemconfiguration.framework, CoreLocation.framework.
Change file suffix name
Because the static library is implemented with objectivec++, you need to change the application proxy file in the project and the file suffix name that requires the call map from. m to. MM, otherwise it will result in a compilation error.
Single run, that is, success.
Introduction to the ios-of the German map