Appdelegate
import RealReachability
RealReachability.sharedInstance().startNotifier() //开启网络监控- iOS 8.0+, tvOS 9.0+, watchOS 2.0+ or OS X 10.10+
- Xcode 7.3 or above
CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:
$ gem install cocoapodsTo integrate Kingfisher into your Xcode project using CocoaPods, specify it in your Podfile:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
pod 'CSNetManager'Then, run the following command:
$ pod installYou should open the {Project}.xcworkspace instead of the {Project}.xcodeproj after you installed anything from CocoaPods.
For more information about how to use CocoaPods, I suggest this tutorial.
Follow and contact me on Sina Weibo. If you find an issue, just open a ticket on it. Pull requests are warmly welcome as well.
CSNetManager is released under the MIT license. See LICENSE for details.