Nguyen Tho Nguyen Tho - 4 months ago 16
iOS Question

How to customize location service using request alert

I want to use an customized alert like the Weather app

Weather

instead of the default alert

enter image description here

How can i do? Thanks in advance

Answer

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.