且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在iOS中以编程方式切换AirPlane模式

更新时间:2023-12-04 21:11:10

Every single App Store app is sandboxed with entitlements.

What you are trying to achieve is simply not possible if you want to distribute your app in the App Store. Your App simply cannot get enough privileges to achieve anything remotely similar. You cannot set global settings that changes the behaviour of the system. Apple will never allow that.

At the best you can monitor the status of the network connectivity via reachability but this is pretty much it. Using private API = straight app rejection.