|
1 | 1 | # RealReachability |
2 | | -[](http://cocoadocs.org/docsets/RealReachability/1.1.9/) |
3 | | -[](http://cocoadocs.org/docsets/RealReachability/1.1.9/) |
4 | | -[](http://cocoadocs.org/docsets/RealReachability/1.1.9/) |
5 | | -[](http://cocoadocs.org/docsets/RealReachability/1.1.9/) |
| 2 | +[](http://cocoadocs.org/docsets/RealReachability/1.2.0/) |
| 3 | +[](http://cocoadocs.org/docsets/RealReachability/1.2.0/) |
| 4 | +[](http://cocoadocs.org/docsets/RealReachability/1.2.0/) |
| 5 | +[](http://cocoadocs.org/docsets/RealReachability/1.2.0/) |
6 | 6 | #### We need to observe the REAL reachability of network for iOS. That's what RealReachability do. |
7 | 7 |
|
8 | 8 | # Why RealReachability? |
@@ -35,7 +35,7 @@ To integrate RealReachability into your Xcode project using CocoaPods, specify i |
35 | 35 |
|
36 | 36 | ```ruby |
37 | 37 | source 'https://github.com/CocoaPods/Specs.git' |
38 | | -platform :ios, '7.0' |
| 38 | +platform :ios, '8.0' |
39 | 39 |
|
40 | 40 | pod 'RealReachability' |
41 | 41 | ``` |
@@ -135,12 +135,18 @@ ReachabilityStatus status = [reachability currentReachabilityStatus]; |
135 | 135 |
|
136 | 136 | Once the reachabilityWithBlock was called, the "currentReachabilityStatus" will be refreshed synchronously. |
137 | 137 | #### Set your own host for Ping (optional) |
| 138 | +##### Note that now we introduced the new feature "doublecheck" to make the status more reliable in 1.2.0! |
138 | 139 | Please make sure the host you set here is available for pinging. Large, stable website suggested. |
139 | 140 | This step is optional. If you do not set this, our default host is: www.apple.com. |
140 | 141 | You may set your own host any time you like. Codes just like below: |
| 142 | +
|
141 | 143 | ``` |
142 | 144 | GLobalRealReachability.hostForPing = @"www.apple.com"; |
| 145 | +GLobalRealReachability.hostForCheck = @"www.youOwnHostExample.com"; |
143 | 146 | ``` |
| 147 | +We suggest you use two hosts: one your own(if you have one available for pinging), one public; Just like the example below. |
| 148 | +
|
| 149 | +For more details about the "doublecheck" feature, you can go deep into the codes. |
144 | 150 |
|
145 | 151 | #### Get current WWAN type (optional) |
146 | 152 | ``` |
|
0 commit comments