IOS SDK Baidu Map does not display properly, only display grid

Source: Internet
Author: User

In the use of Baidu map development when the problem arises, the problem is:

IOS SDK Baidu Map does not display properly, only display grid


The problems that arise here have been tangled for a long time, and finally found the need to enter a security code when creating an application in the API console

This security code is then known as the bundle in the project Identifier

So we need to fill in the project Info.plist file set bundle identifier and security code as can be



In addition, there are some areas to note

Attention:
1. In order to provide better service to users, IOS SDK has introduced a new key verification system since the v2.0.2 version. Therefore, when you choose to use the v2.0.2 and later version of the SDK, you need to go to the new Key application page for the new key application;
2. The new, old key is not universal, that is, the new key can only be used in v2.0.2 and subsequent versions of the SDK, the old key is only applicable to v2.0.1 and previous versions of the SDK. We will keep the old key service for a long time, please feel free to use it.


Note: Since the iOS8, the system positioning function has been upgraded, the SDK in order to achieve the latest adaptation, Since v2.5.0 has also made the corresponding changes, developers in the use of positioning function, need to add in the Info.plist (the following two select one, two are added by default using Nslocationwheninuseusagedescription):
Nslocationwheninuseusagedescription, allowing the GPS description to be used in the foreground
Nslocationalwaysusagedescription, allow permanent use of GPS description

Article reference: http://www.wahenzan.com/a/mdev/ios/2015/0113/1487.html



IOS SDK Baidu Map does not display properly, only display grid

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.