SBSetAirplaneModeEnabled函数在iOS 3.0+中的位置 [英] Where did SBSetAirplaneModeEnabled function go in iOS 3.0+

查看:209
本文介绍了SBSetAirplaneModeEnabled函数在iOS 3.0+中的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人知道如何在2.x之后启用/禁用iPhone SDK中的飞行模式?

Does anyone know how to enable/disable airplane mode in iPhone SDKs after 2.x?

我需要创建一个合法禁用收音机的应用程序它的执行。 Apple很快就会允许这样做。

I need to create an app that legitimately disables the radio for the duration of its execution. Is Apple likely to permit this soon.

我跟着 http://blogs.oreilly.com/iphone/2009/01/bring-airplane-mode-control-ba.html

但是setAPMode指针为空。

but setAPMode pointer is null.

问候,

Steve

推荐答案

AppSupport.framework的 RadiosPreferences 类有一个 airplaneMode 有效的属性(从iOS 4.3开始)

AppSupport.framework's RadiosPreferences class has an airplaneMode property that works (as of iOS 4.3)

这篇关于SBSetAirplaneModeEnabled函数在iOS 3.0+中的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆