监控网络连接 SSASwiftReachability

码农软件 · 软件分类 · 网络(Networking) · 2019-07-10 11:57:39

软件介绍

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)
            }
        }
    }


本文地址:https://codercto.com/soft/d/9820.html

Graph Algorithms

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》 这本书的介绍吧!

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

html转js在线工具
html转js在线工具

html转js在线工具

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具