gpt4 book ai didi

ios - 自定义默认当前位置提醒消息 (iOS)

转载 作者:塔克拉玛干 更新时间:2023-11-02 09:03:54 26 4
gpt4 key购买 nike

当 iPhone 想要使用用户当前位置时,是否可以自定义默认提醒消息。我不仅要更改文本,还要更改默认的蓝屏警报 View 。可能吗?

enter image description here

谢谢。

最佳答案

不可能。来自 documentation ,

Important: In addition to hardware not being available, the user has the option of denying an application’s access to location service data. During its initial uses by an application, the Core Location framework prompts the user to confirm that using the location service is acceptable. If the user denies the request, the CLLocationManager object reports an appropriate error to its delegate during future requests. You can also check the application’s explicit authorization status using the authorizationStatus method.

警报由核心位置框架提示。我们无法控制它。

编辑:加起来,来自this Apple 开发者论坛主题(需要登录)

That alert is shown in a standard fashion for all applications for privacy reasons. The user's current location is sensitive information, and we want to be sure that they give their informed consent to any use of it on the device. The way that we do that is by providing a clear, consistent mechanism for the user to give their consent. If applications were allowed to override or disable the alert, then that consistency would be lost.

回答者是 Apple 员工..

关于ios - 自定义默认当前位置提醒消息 (iOS),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13682820/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com