花落无声
Friday, May 15, 2015
two things you need to do when using corelocation on 8.0+
firstly.
add
NSLocationWhenInUseUsageDescription to
info.plst.
secondly.
use this code to get authorization
if
([[[
UIDevice
currentDevice
]
systemVersion
]
floatValue
] >=
8.0
){
[
self
.
locationManager
requestWhenInUseAuthorization
];
}
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment