开发者

How to know is iPhone device have 3G network or Wifi network thorugh iPhone sdk?

I want to开发者_如何学JAVA know if my iPhone has a network connection. But what I didn't get is if the connction is Wifi or 3G thorugh SDK. Can any one help me?


You should be able to get the model through the SDK. You should be able to use that to find out the specs.

Edit: Expanding answer in response to comment

 #include "Reachability.h" 
 Reachability *reach = [[Reachability alloc]init]; 

AND THEN check the internetconnectionstatus.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜