• [转]UIDevice uniqueGlobalDeviceIdentifier(百度地图API的那些事)


    转自:http://blog.sina.com.cn/s/blog_63ced45101016nrt.html

    (1)编译正常,运行报  [UIDevice uniqueGlobalDeviceIdentifier]: unrecognized selector sent to此时需要 other linker  flags 添加 -all_load参数。

             具体:Project ->build settings ->linking->Other Linker flags

    (2)编译报  Undefined symbols for architecture armv7。请检查有没有添加QuartzCore.framework 和 CoreLocation.framework

     (3)  BMKMapManager 强烈建议通过单例模式管理起来,并且不要手动调用其release方法。

     (4)  进行用户位置定位时除了要设置showsUserLocation = YES,还要在mapView:didUpdateUserLocation:方法中调用setCenterCoordinate:animated

             另外一定要在dealloc中,或者其他离开页面的地方调用showsUserLocation= NO,否则会出现第二次push到定位页面时,不会重新定位问题。

     (5) 必须至少让一个类保持.mm文件,或者按照官方修改编译器类型。

     (6) lipo –create Release-iphoneos/libbaidumapapi.a Release-iphonesimulator/libbaidumapapi.a –output libbaidumapapi.a 如果报错,请改成

         lipo –create –output libbaidumapapi.a Release-iphoneos/libbaidumapapi.a Release-iphonesimulator/libbaidumapapi.a 就能解决。

  • 相关阅读:
    Eclipse修改JSP文件的默认编码
    RPM常用命令总结
    软链接的妙用
    多线程练习
    Spring整合struts的配置文件存放问题
    使用struts框架后的404错误
    俄罗斯方块中的编程思想
    引用类型的强制类型转换
    数据库还原的问题
    常用sql语法初级
  • 原文地址:https://www.cnblogs.com/ygm900/p/2932012.html
Copyright © 2020-2023  润新知