Swift uses Baidu Map API encountered before the pit on Android used Baidu map, thought probably similar, also did not carefully read the document, the results of their own pit the attention matters, http://developer.baidu.com/map/index.php?title= Iossdk/guide/attention
1, unable to locate nslocationwheninuseusagedescription no add
2, link error See precautions 1
3, Bmkmapmanager start failed in Info.plist add bundle display name, actually in Plist is Cfbundledisplayname
4, undefined symbols for architecture I386 Simulator library and the difference between the real hangar, drag the library to the project, will automatically add the path of two libraries, the beginning of my emulator library path is right behind the real hangar, the hint can not find the symbol, so the path to the above. Later found a better solution is to use the $ (EFFECTIVE_PLATFORM_NAME) macro, refer to http://tsyouaschen.iteye.com/blog/2021174
5. To initialize the Bmkmapmanager first
Manual: Use let to declare constants, and use Var to declare variables. A constant value does not need to be fetched at compile time, but you can only assign it once. That means you can use represented to represent a value: You only have to decide once, but you need to use it many times.
http://www.cocoachina.com/bbs/read.php?tid=193280s
Swift Baidu Map API