Swift Baidu Map API

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.