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 8NSLocationAlwaysUsageDescriptionは常に使用する場所とNSLocationWhenInUseUsageDescription、アプリがアクティブなときに場所を使用するときに使用します。

于 2014-10-31T15:33:01.567 に答える