开发者

How to check Airplane mode in background in iPhone?

I have application which is working best with Wif开发者_运维技巧i,3G.. Now what i want is i want to check in background if Airplane mode is going to be on at any moment and i want to popup alert saying "Airplane mode is On."

Thanks in advance.


You can think different approach, check your mobile Network availability rather than the Airplane mode and Show a Generic Alert There is no network Available for example.

Check This link iphone-sdk-testing-network-reachability

Good luck


This is practically impossible unless the user does it within a 10 minute time frame of your application entering background mode.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜