The following code works fine on iOS 9, see [this](https://stackoverflow.com/questions/33437815/how-to-programmatically-open-the-wifi-settings-in-objective-c-in-ios9) post. But it doesn't work on iOS 10. How to open WIFI settings programmatically on iOS 10

```
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=WIFI"]];

```