开发者

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

开发者 https://www.devze.com 2023-03-07 22:16 出处:网络
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 thr

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

精彩评论

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