Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

patrover

macrumors newbie
Original poster
Aug 15, 2009
25
0
is there a way to distinguish whether the data that is sent/received through NSURLConnection is transmitted using EDGE/3G or whether using WiFi ?

thanks
 

`lowell`

macrumors newbie
Aug 20, 2009
29
0
San Diego
is there a way to distinguish whether the data that is sent/received through NSURLConnection is transmitted using EDGE/3G or whether using WiFi ?

thanks

i thought i heard either evan or allan mention in one of the stanford videos that we couldn't; i'd normally trust their word as they work for apple (evan does anyways, he led a session at wwdc), but a quick google query gives you this:

http://kastang.com/blog/2009/08/iphone-dev-tip-determining-connection-type/

then again, i probably mis-heard as i was only half listening while watching those videos.
 

robbieduncan

Moderator emeritus
Jul 24, 2002
25,611
893
Harrogate
Look at the reachability sample: you can tell at a given point in time of you are on WiFi or not. Once you have the data you can't...
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.