How do I change the default text of NSLocationWhenInUseUsageDescription?

How could I access and change the default text "Allow 'yourApp' to access your location while you use the app?", when the first time app requestWhenInUseAuthorization?


I already have set the subtitle of the alert panel in NSLocationWhenInUseUsageDescription String, but can't figure out how to change the main title of the alert.


Would appreciate any help.

Accepted Reply

It should be following the user's language settings. I just tried this with one of my phones changing the language to Portuguese (Portugal) and the alert changed to display in Portuguese.

Replies

You cannot change that text. It is provided by the operating system and is consistent across all apps for each of the authorization types. Why would you want to change it?

I want to display that message in portuguese, not in english.


Thanks for your quickly reply.

It should be following the user's language settings. I just tried this with one of my phones changing the language to Portuguese (Portugal) and the alert changed to display in Portuguese.

Wow, that is it, thanks.