I want to open wifi settings from inside my application,that is I don't want the settings page to put my application in background. I found a similar question : Opening the Settings app from another app
And tried this: for opening the wifi Settings page directly from my app:
NSURL *url = [NSURL URLWithString:@"prefs:root=WIFI"];
if ([[UIApplication sharedApplication] canOpenURL:url])
{
[[UIApplication sharedApplication] openURL:url];
}
But even this code puts my app in background,hence the user needs to navigate back to the app. Kindly suggest if there is any possible option so that the app does not enter background.