Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to customize “X would like to use your current location” on the iPhone?

Tags:

cocoa-touch

Is it possible to style the location alert box: "(app name) would like to use your current location” on the iPhone?

like image 417
Boon Avatar asked Dec 11 '22 23:12

Boon


1 Answers

You can only tell user the reason for using his location by setting purpose property of CLLocationManager.

EDIT: The purpose property is deprecated in iOS 6. But there is a replacement. For iOS 6 and above you should add NSLocationUsageDescription key to your Info.plist file. If your app targets iOS versions lower than 6.0, you might want to do both.

like image 192
Adam Avatar answered Jun 06 '23 22:06

Adam