I am able to open Settings > iCloud using following method,
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"App-Prefs:root=CASTLE"]];
Question: Is this legal? Will Apple reject the application? Because I cannot find any legitimate source for this method to open iCloud Settings.