iPhone SDK Internet connection detection

后端 未结 3 2016
执念已碎
执念已碎 2020-12-02 05:33

I\'m working on an iPhone application that makes a few calls to web services. I posted this application on the Apple store but it got rejected (and rightly so) since there w

3条回答
  •  孤城傲影
    2020-12-02 05:45

    Cautionary word: beware SBUsesNetwork. I would personally love to know where SBUsesNetwork originally came from, because it's not mentioned anywhere in Apple's docs that I can find. When I add the key to my app's plist (as a boolean) and set to true, it doesn't seem to affect the behaviour of my app -- I get no warning about airplane mode, whether starting app completely afresh, or foregrounding a previous launch that was backgrounded.

    My app has UIRequiresPersistentWifi set to true, which appears to also do the job people claim SBUsesNetwork does (plus other things!).

    (I'm running iOS4.2.1 on an iPhone 4, XCode 3.2.5 64 bit).

提交回复
热议问题