Nguyen Tho Nguyen Tho - 1 year ago 95
iOS Question

How to customize location service using request alert

I want to use an customized alert like the Weather app


instead of the default alert

enter image description here

How can i do? Thanks in advance

Answer Source

You have to add NSLocationAlwaysUsageDescription or NSLocationWhenInUseUsageDescription key in your plist file:

See below picture:

enter image description here

After adding these keys in your plist file remove app from device or simulator and run it.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download