监控网络连接 SSASwiftReachability
- 授权协议: MIT
- 开发语言: Swift
- 操作系统: iOS
- 软件首页: https://github.com/SSA111/SSASwiftReachability
软件介绍
SSASwiftReachability 是用来监控网络可连接能力变化的 Swift 库。
使用:
override func viewDidLoad() {
super.viewDidLoad()
// MARK: Start Monitoring For Network Reachability Changes.
SSASwiftReachability.sharedManager?.startMonitoring()
// MARK: Listen For Network Reachability Changes
NSNotificationCenter.defaultCenter().addObserver(self, selector: "reachabilityStatusChanged:", name: reachabilityDidChangeNotification, object: nil)
}
func reachabilityStatusChanged(notification: NSNotification) {
if let info = notification.userInfo {
if let s = info[reachabilityNotificationStatusItem] {
print(s.description)
}
}
}Graph Algorithms
Shimon Even / Cambridge University Press / 2011-9-19 / USD 32.99
Shimon Even's Graph Algorithms, published in 1979, was a seminal introductory book on algorithms read by everyone engaged in the field. This thoroughly revised second edition, with a foreword by Richa......一起来看看 《Graph Algorithms》 这本书的介绍吧!
