2016年3月15日 星期二

[iOS]CoreLocation使用時callback沒有被呼叫,也沒有詢問使用者權限的問題。

問題如題

解法如下:

如果確定delegate都設定好了,

那請去info.list內新增一個row

輸入key名稱為"NSLocationWhenInUseUsageDescription"或"NSLocationAlwaysUsageDescription"

在App開始時就會詢問了。

參考連結
http://nevan.net/2014/09/core-location-manager-changes-in-ios-8/

沒有留言:

Class has no initializers in swift

Class has no initializers in swift I have met this situation. Found a solution here It says if you have the code like bellow var se...