开发者

Programmatically check whether GPS is enabled or not on iPhone

开发者 https://www.devze.com 2023-02-07 17:58 出处:网络
How can I check whether GPS is enabl开发者_如何学JAVAed or not on the iPhone?http://developer.apple.com/library/ios/#documentation/CoreLocation/Reference/CLLocationManager_Class/CLLocationManager/CLLo

How can I check whether GPS is enabl开发者_如何学JAVAed or not on the iPhone?


http://developer.apple.com/library/ios/#documentation/CoreLocation/Reference/CLLocationManager_Class/CLLocationManager/CLLocationManager.html

[CLLocationManager locationServicesEnabled]

Returns a Boolean value indicating whether location services are enabled on the device.

0

精彩评论

暂无评论...
验证码 换一张
取 消