Common mistakes in integrating Baidu maps

Source: Internet
Author: User

(1) Compile normal, run the newspaper [Uidevice Uniqueglobaldeviceidentifier]: Unrecognized selector sent to this time need other linker flags add-all_load parameters.
Specific: Project->build settings->linking->other Linker Flags
(2) Compile the report Undefined symbols for architecture armv7. Please check that there are no additions to quartzcore.framework and corelocation.framework
(3) Bmkmapmanager strongly recommends managing with a singleton mode and not calling its release method manually.
(4) In addition to setting Showsuserlocation = YES for user location positioning, call setcentercoordinate:animated in the Mapview:didupdateuserlocation: method.
Also be sure to call showsuserlocation= No in dealloc, or anywhere else away from the page, or the second push to the location page will not reposition the problem.
(5) Let at least one class keep the. mm file, or follow the official modification of the compiler type.
(6) lipo–create RELEASE-IPHONEOS/LIBBAIDUMAPAPI.A release-iphonesimulator/libbaidumapapi.a–output LIBBAIDUMAPAPI.A If an error is made, please change it to
Lipo–create–output LIBBAIDUMAPAPI.A RELEASE-IPHONEOS/LIBBAIDUMAPAPI.A RELEASE-IPHONESIMULATOR/LIBBAIDUMAPAPI.A can be solved.

-[__nscfstring StringFromMD5]

Other linker flags Add-all_load parameter

After practice, I recommend not to do so, the default is based on the file type to choose the way to compile, the file if. M with Objective-c, if. MM is objective-c++, manual change will make the whole project with a compile method, is prone to error or incompatible, For example, when the Navigationitem instantiation will be wrong, since Baidu map so maverick, then the best way is to change the map-related classes to. mm, the other is still, so that only this class will be used objective-c++ compile mode

Baidu Map does not display text: Because there is no setting mapview width height

Common mistakes in integrating Baidu maps

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.