背景:
6S以前的設備均支持以私有API的方式開關飛行模式。但6S若在子線程中調用,失效。
方法:
1)AppSupport.framework中導出私有API
2)簽名權限
分析:
6S在簡單的主線程中可以調用生效。否則提示The connection to service named com.apple.nanosystemsettings was invalidated。
背景:
6S以前的設備均支持以私有API的方式開關飛行模式。但6S若在子線程中調用,失效。
方法:
1)AppSupport.framework中導出私有API
2)簽名權限
分析:
6S在簡單的主線程中可以調用生效。否則提示The connection to service named com.apple.nanosystemsettings was invalidated。