iPhone SDK: Do I need to ask user for permissions to use GPS?

南笙酒味 提交于 2019-12-05 09:08:00

It won't be ask for permission in iphone simulator... It will ask for user permission in iphone device only... and for that you do not need to do anything explicitly.. It will ask implicitly...

This popup is displayed automatically by system if you try to access core location services on device for the first time.
If user denies access then your location delegate will receive didFailWithError: message with kCLErrorDenied error and you must stop using location service then (e.g. call [manager stopUpdatingLocation]; on your location manager).

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