文件名称:NetworkStatusObserver:监听网络变化监听网络变化(Network status changed notification
文件大小:26KB
文件格式:ZIP
更新时间:2024-06-28 09:41:03
Objective-C
NetworkStatusObserver 监听网络变化(Network status changed notification: (WWAN)2G,3G,4G,Wi-Fi,Not reachable) ####Requirements Minimum iOS Target iOS 7 #####添加 Framework CoreTelephony.framework #####添加下面这些文件: Reachability.h Reachability.m NetworkStatusObserver.h NetworkStatusObserver.m NetworkStatus.strings ####网络状态 typedef NS_ENUM(NSInteger, BPNetworkStatus) { BPNetworkStatus_None = NotReachable
【文件预览】:
NetworkStatusObserver-master
----.gitignore(222B)
----README.md(1KB)
----NetworkStatusObserver.xcodeproj()
--------project.xcworkspace()
--------project.pbxproj(20KB)
--------xcuserdata()
----NetworkStatusObserver()
--------AppDelegate.h(288B)
--------ViewController.h(226B)
--------Base.lproj()
--------main.m(345B)
--------Images.xcassets()
--------Info.plist(1KB)
--------AppDelegate.m(2KB)
--------ViewController.m(975B)
----Classes()
--------Reachability+bpStatusDescription.h(324B)
--------Reachability+bpStatusDescription.m(611B)
--------en.lproj()
--------zh-Hans.lproj()
--------Reachability.m(9KB)
--------NetworkStatusObserver.m(6KB)
--------NetworkStatusObserver.h(1KB)
--------Reachability.h(4KB)
----NetworkStatusObserverTests()
--------NetworkStatusObserverTests.m(912B)
--------Info.plist(746B)