zoukankan      html  css  js  c++  java
  • swift百度地图api

    swift使用百度地图api遇到的坑 之前在Android上用过百度地图,以为大概类似,也没仔细看文档,结果被自己坑了 注意事项,http://developer.baidu.com/map/index.php?title=iossdk/guide/attention

    1、无法定位NSLocationWhenInUseUsageDescription没有加

    2、链接错误看注意事项1

    3、BMKMapManager start failed 在info.plist里添加Bundle display name,实际在plist里是CFBundleDisplayName

    4、undefined symbols for architecture i386 模拟器库和真机库的区别,把库拖到工程后,会自动把两个库的路径都加入,一开始我的模拟器库路径正好在真机库的后面,提示找不到符号,于是把路径移到上面了。后来发现更好的解决方法是用$(EFFECTIVE_PLATFORM_NAME)宏,参考http://tsyouaschen.iteye.com/blog/2021174

    5、要先初始化BMKMapManager

    手册:使用 let 来声明常量,使用 var 来声明变量。一个常量的值在编译时并不需要获取,但是你 只能为它赋值一次。也就是说你可以用常量来表示这样一个值:你只需要决定一次,但是需 要使用很多次。

    http://www.cocoachina.com/bbs/read.php?tid=193280s

  • 相关阅读:
    应急响应中find命令总结
    应急响应排查思路
    硬链接与软链接的区别
    Linux开机启动项总结
    android 開發常用網站
    epoll
    Qualcomm platform, the commonly used parameters of charger and battery in device tree file
    why not ovp protection ?
    Performance tuning
    Using adb over wifi
  • 原文地址:https://www.cnblogs.com/xdao/p/swift_baidumap_api.html
Copyright © 2011-2022 走看看