需增加一列到info.plist

<key>NSLocationWhenInUseUsageDescription</key>

<string>顯示的訊息</string>

 

參考資料:

http://www.techotopia.com/index.php/A_Swift_Example_iOS_8_Location_Application

https://www.youtube.com/watch?v=GX1zb1FWPqA

arrow
arrow
    全站熱搜

    小賢 發表在 痞客邦 留言(0) 人氣()