iOS Project replacement Baidu maps 2.5 version, suitable for iPhone6 and iPhone6 plus problems

Source: Internet
Author: User

After updating Baidu map SDK2.5 version


1. If you do not know which version of the previous SDK , you need to request a new Key


2. add in info.plist: Bundle Display Name--${product_name}


3. The new SDK Static library is implemented with objectc++, you need to change any file suffix to. mm


4. Add:( info.plist add default foreground use )

Nslocationwheninuseusagedescription->yes//Allow GPS description for use in front of the reception

Nslocationalwaysusagedescription->yes// allow permanent use of GPS description


5. There is no attribute userlocation in the new version Bmkmapview,

Userlocation property in Bmklocationservice


6. It is recommended that the instance of Bmkmapmanager not be declared as a local variable, otherwise the instance is released, which can seriously affect the use of the map.

Cannot release manager in non-arc


Go to map do not load data solution

[Self.locmanager startupdatinglocation];


Because the mapview Center point is set to the coordinates of xx , when the mobile map finger is released , the pin will return to that point.

[_mapview Setcentercoordinate:degressvalue];


You need to modify the magnification level because you canceled the pin position to the center point

TheRegion.span.longitudeDelta = 0.XXXF;

TheRegion.span.latitudeDelta = 0.XXXF;


I tested it on the IPhone6 plus.
No tests on simulator

iOS Project replacement Baidu maps 2.5 version, suitable for iPhone6 and iPhone6 plus problems

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.