Wifi strength in iPhone app
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
This may help get you going on the right track .....
http://blog.vladalexa.com/2010/07/07/iphone-signal-testing-with-code/
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.
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
精彩评论