objective c - How do you get that normal style location not available in IOS? -


say turn off location in map. go map. apple pop , says location not available. when user press settings goes settings.

how pop message?

i know can use uialertview. message seems apple standard. when pressing settings people go setting straight. not see how can make self or can i?

it seems apple display pop automatically when try location don't have permission so.

well, not in case. in case if app doesn't have permission so, it'll hang waiting permission never come.

the first time app wants use location services, system show alert. user has choice enable it, alert not shown again. developer, don't have ability show again.

what do, check authorizationstatus on cllocationmanager:

if ([cllocationmanager authorizationstatus] != kclauthorizationstatusauthorized) {     // show alert telling user enable location services app } 

you can't directly open settings app though.


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -