ios 百度地圖使用

來源:互聯網
上載者:User

標籤:http   使用   os   io   檔案   for   ar   代碼   

第一步、引入

1、下載SDK  地址http://developer.baidu.com/map/index.php?title=iossdk/sdkiosdev-download

2、解壓出BaiduMap_IOSSDK_v2.3.0_Lib、在工程中第三方中添加檔案夾BaiDumap

然後在檔案夾中放入(1:inc;2:mapapi.bundle;libbaidumapapi.a)

 

第二步、建立百度地圖應用

1、http://lbsyun.baidu.com/apiconsole/key在這裡建立應用。名稱隨便。應用類型:for mobile。安全碼:Bundle Identifier。建立後會產生一個ak

第三步、應用配置

1、targets—>Build Settings —>Linking—>Other Linker Flags  改為-all_load(使用Xcode5時,使用Xib沒有用代碼則設定為-ObjC)

2、在模擬器上使用map時,選擇Release-iphoneos下的libbaidumapapi.a(這是在第一步引入中的libbaidumapapi.a)

   在真機上使用map時,選擇Release-iphonesimulator下的libbaidumapapi.a

 

第四步、OK,可以使用了

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.