How to enable/disable data connection in iOS programmatically?

User can turn on or turn off mobile data from settings of an iOS device, but it’s practically not possible to disable or enable the same programmatically. It is only possible if you jailbroke an iOS device.. Apple does not allow any apps developer to access wifi or Bluetooth.

There are some private API’s which may aid this but eventually result in app rejection from the app store.