ios - is "Turn Off Airplane Mode" alert deprecated? -


i think read somewhere deprecated? , alternatives?

i'm talking boolean in info.plist says: sbusesnetwork = yes.

the alert shown says:

turn off airplane mode or use wi-fi access data

it has neat "settings" button takes settings app.


i'm aware of reachability sample code apple great. don't know how programmatically show alert or similar alert, can take settings app.

you can use flag "application uses wi-fi" instead have message settings button plane mode.

on ipad message shown if plane mode turn on (no message if wi-fi turn off). on iphone message shown in both cases - when plane mode turn on or when wi-fi turn off.

updated: ios5 can open settings directly:

 [[uiapplication sharedapplication] openurl:[nsurl urlwithstring:@"prefs://"]]; 

update: url above works in ios 5.0


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -