项目主页
https://github.com/ashleymills/Reachability.swift
Reachability.swift 见 附件
获取当前网络信息
Cellular = 移动数据
let Inter:Reachability; do{ try Inter = Reachability.reachabilityForInternetConnection(); print("Inter:"+Inter.currentReachabilityStatus.description as String ); //No Connection/WIFI/Cellular }catch{ }