Nguyen Tho Nguyen Tho - 3 months ago 14x
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


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.