在ios8中,要在plist裡加上NSLocationWhenInUseUsageDescription這個property,否則LocationManager的didUpdateLocations 不會正確被呼叫到。
NSLocationWhenInUseUsageDescription是在iOS8才出現的關鍵字。
http://stackoverflow.com/questions/24874997/core-location-not-working-in-ios-8
http://stackoverflow.com/questions/24717547/ios-8-map-kit-obj-c-cannot-get-users-location
沒有留言:
張貼留言