Wifi strength in iPhone app

后端 未结 3 1285
清酒与你
清酒与你 2021-01-14 06:30

Does anyone have some code I can use in an iPhone app that will let me see strength of wifi? I have a connection intensive operation and prefer they aren\'t in a spotty zone

相关标签:
3条回答
  • 2021-01-14 06:45

    I doubt this is possible.

    iOS and its SDK isolate applications from doing (and querying) most system-level things. What you could do is to use [NSData dataWithContentsFromURL:...] to do one or two HTTP requests to ensure that the connection is stable and then do the main data transfers.

    0 讨论(0)
  • 2021-01-14 06:48

    I wanted to point those of you who land here to a great reference on this question.

    Getting the wifi signal for your use on an iOS device:

    Accessing & Using the MobileWiFi.framework

    0 讨论(0)
  • 2021-01-14 06:56

    This may help get you going on the right track .....

    http://blog.vladalexa.com/2010/07/07/iphone-signal-testing-with-code/

    0 讨论(0)
提交回复
热议问题