IOS 网络判断

 Reachability *connectionNetWork= [Reachability reachabilityForInternetConnection] ;
    int status = [connectionNetWork currentReachabilityStatus ];
// 0 没有网络
// 1 wifi

 

posted @ 2013-08-20 18:02  菜鸟程序猿  阅读(154)  评论(0编辑  收藏  举报