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.
精彩评论