I want to use an customized alert like the Weather app
instead of the default alert
How can i do? Thanks in advance
You have to add NSLocationAlwaysUsageDescription or NSLocationWhenInUseUsageDescription key in your plist file:
NSLocationAlwaysUsageDescription
NSLocationWhenInUseUsageDescription
plist
See below picture:
After adding these keys in your plist file remove app from device or simulator and run it.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.