[iOS] ネットワーク接続状況を確認するライブラリの調査

Tadashi Shigeoka ·  Wed, May 8, 2013

iOS アプリで使えるネットワークの接続状況を確認するライブラリの調査というか、pod search Reachability しただけ。

% pod search Reachability


-> GCNetworkReachability (1.3.0)
   GCNetworkReachability monitors the network state on iOS and OS X devices. Supports ARC, GCD, Blocks, IPv4/IPv6 and OS X/iOS.
   - Homepage: https://github.com/GlennChiu/GCNetworkReachability
   - Source:   https://github.com/GlennChiu/GCNetworkReachability.git
   - Versions: 1.3.0, 1.2.1 [master repo]


-> KSReachability (1.3)
   A better iOS & Mac reachability for a modern age.
   - Homepage: https://github.com/kstenerud/KSReachability
   - Source:   https://github.com/kstenerud/KSReachability.git
   - Versions: 1.3, 1.1, 1.0, 0.0.1 [master repo]


-> NPReachability (0.1.0)
   Reachability without the suck.
   - Homepage: https://github.com/Abizern/NPReachability
   - Source:   https://github.com/Abizern/NPReachability.git
   - Versions: 0.1.0 [master repo]


-> Reachability (3.1.0)
   ARC and GCD Compatible Reachability Class for iOS and OS X. Drop in replacement for Apple Reachability.
   - Homepage: https://github.com/tonymillion/Reachability
   - Source:   https://github.com/tonymillion/Reachability.git
   - Versions: 3.1.0, 3.0.0, 2.0.5 [master repo]


-> SCNetworkReachability (1.0.1)
   Wrapper for SCNetworkReachability methods of SystemConfiguration.framework.
   - Homepage: https://github.com/belkevich/reachability-ios
   - Source:   https://github.com/belkevich/reachability-ios.git
   - Versions: 1.0.1, 1.0.0 [master repo]


-> VPPReachability (0.1.0)
   VPPReachability Library for iOS simplifies access to the status of a given hostname.
   - Homepage: https://github.com/vicpenap/VPPReachability
   - Source:   https://github.com/vicpenap/VPPReachability.git
   - Versions: 0.1.0 [master repo]

あとは github の star と fork の数とか最終更新日とか確認しただけなんですが、やはり「Reachability」がダントツで多いですね。 ・tonymillion/Reachability · GitHub

ただ、KVO (Key-Value Observing) を別途、自分で実装するのが面倒なので、KVO まで実装されているものを選ぶとすると「KSReachability」でしょうか。 ・kstenerud/KSReachability · GitHub