I couldn't use below code to open Settings/Privacy/Photos from iPhone X
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"App-Prefs:root=Privacy&path=PHOTOS"]];
But this code run well on other older devices
I couldn't use below code to open Settings/Privacy/Photos from iPhone X
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"App-Prefs:root=Privacy&path=PHOTOS"]];
But this code run well on other older devices
after iOS 5.1 shortcuts are not working in devices. you can open setting page by following this code.
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString] options:@{} completionHandler:^(BOOL success) {
if (success) {
NSLog(@"Opened Settings");
}
}];