您现在的位置: IOS教程網 >> IOS系統 >  >> iOS 程式開發 >> iOS 開發綜合

iOS 百度地圖整合注意事項

編輯:iOS 開發綜合

整合百度地圖時,先加入 BaiduMapAPI 框架,並補上 CoreLocation、QuartzCore、OpenGLES、SystemConfiguration、CoreGraphics、Security 等系統庫。

接著在 Build Settings 的 Other Linker Flags 加入 -ObjC,並匯入 mapapi.bundle 資源檔。若缺少此資源,地圖可能無法正常顯示。

使用相關類別時需引入對應標頭檔,並在 Info.plist 加入定位用途描述,例如 NSLocationWhenInUseUsageDescription 或 NSLocationAlwaysUsageDescription。若未加入定位描述,定位功能可能失敗。

  1. 上一篇文章:
  2. 下一篇文章:
蘋果刷機越獄教程| IOS教程問題解答| IOS技巧綜合| IOS7技巧| IOS8教程
Copyright © IOS教程網 All Rights Reserved