Search code examples
objective-cios4ios5youtubesettings

iOS: Open Settings app Programmatically as Youtube app does


As we know Apple disabled this feature in iOS 5.1 and later:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs://"]];

that allowed users launch for ex Settings app from any apps.

I'm wondering how YouTube iPhone app does it? Because it can still launch Settings app from it's application with iOS 5.1 and later.

Maybe there is no solution but, I just wondering about the way, YouTube app developer found :))


Solution

  • The YouTube app developer is Apple. They're not subject to the same rules as the rest of us.

    Updated since someone kindly downvoted this four-year-old answer and brought it to my attention: you can now do this by opening a URL made from the UIApplicationOpenSettingsURLString string constant.