Reputation:
I want to make a today extension for iOS. In the storyboard I want a switch that turns on or off my mobile data on my iOS device. Does anyone know if that is possible?
Upvotes: 0
Views: 1526
Reputation: 2690
No you cannot. However, you can use an alert view that takes the user to the device settings:
UIApplication.sharedApplication().openURL(NSURL(string:UIApplicationOpenSettingsURLString)!)
Upvotes: 2