Reputation: 159
I have the code to open my app settings:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]];
But how do i get it to open Facebook app settings instead of mine ?.
Upvotes: 2
Views: 635
Reputation: 82759
for reference purpose I Taken the answer from here
If your app has it’s own settings bundle, the settings will be opened showing your app’s settings. If your app does not have a setting bundle, the main settings page will be shown.
if(&UIApplicationOpenSettingsURLString != nil)
{
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]];
}
Swift
if UIApplicationOpenSettingsURLString != nil {
UIApplication.sharedApplication().openURL(NSURL(string: UIApplicationOpenSettingsURLString)!)
}
Upvotes: 2