1

我需要用我自己的替换要求允许访问用户位置的标准警报。可能吗?

或者有没有办法自定义系统警报?

非常感谢!;)

4

1 回答 1

2

您只能添加使用位置的原因,您无法自己更改警报。

添加以下内容:

<key>NSLocationAlwaysUsageDescription</key>
<string>We need to determine your location, to check where you are on a route.</string>
<key>NSLocationUsageDescription</key>
<string>We need to determine your location, to check where you are on a route.</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>We need to determine your location, to check where you are on a route.</string>

在 iOS 8 之前它使用NSLocationUsageDescription,iOS 8 它NSLocationAlwaysUsageDescription用于始终使用位置以及NSLocationWhenInUseUsageDescription在应用程序处于活动状态时使用位置。

于 2014-10-31T15:33:01.567 回答