Switch to airplane mode in iOS

Android has a method for connection control (driver.setNetworkConnection(new NetworkConnectionSetting(true,false,false));
seems that iOS doesn’t have support for it,
is there an external library for it?

@menypeled wanted to see if you have any updates on this? I need to write a few tests involving switching the airplane mode on and off for iOS.