开发者

Programmatically check whether GPS is enabled or not on iPhone

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜