OGeek|极客世界-中国程序员成长平台

标题: iphone - 是否可以手动调用警报 "Allow to use current location"? [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-12 15:25
标题: iphone - 是否可以手动调用警报 "Allow to use current location"?

在使用CoreLocation框架时是否可以手动调用alert“允许使用当前位置”?



Best Answer-推荐答案


不,它会在应用访问核心位置时自动显示。如果用户拒绝它,它会在下次启动时再次显示,然后它会保持安静并且不再显示。

查看此答案 how to detect if the user rejected the request .

关于iphone - 是否可以手动调用警报 "Allow to use current location"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3749648/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://ogeek.cn/) Powered by Discuz! X3.4