How To Turn Location Service On

不问归期 提交于 2019-12-01 12:32:27

问题


How can I turn Location Services back on from the actual app when someone declined the first time. I have an option to turn it off or on.


回答1:


You can only prompt them to the screen to turn on location services like so:

[[UIApplication sharedApplication] openURL:[NSURL URLWithString: @"prefs:root=LOCATION_SERVICES"]];


来源:https://stackoverflow.com/questions/11317598/how-to-turn-location-service-on

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!