Skip to content

Commit 6022863

Browse files
committed
1.2.0 readme
1 parent 868187c commit 6022863

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

README.md

+11-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# RealReachability
2-
[![Version](https://img.shields.io/badge/pod-1.1.9-yellow.svg)](http://cocoadocs.org/docsets/RealReachability/1.1.9/)
3-
[![License](https://img.shields.io/badge/License-MIT-blue.svg)](http://cocoadocs.org/docsets/RealReachability/1.1.9/)
4-
[![Platform](https://img.shields.io/badge/Platform-iOS-orange.svg)](http://cocoadocs.org/docsets/RealReachability/1.1.9/)
5-
[![Platform](https://img.shields.io/badge/Build-Passed-green.svg)](http://cocoadocs.org/docsets/RealReachability/1.1.9/)
2+
[![Version](https://img.shields.io/badge/pod-1.2.0-yellow.svg)](http://cocoadocs.org/docsets/RealReachability/1.2.0/)
3+
[![License](https://img.shields.io/badge/License-MIT-blue.svg)](http://cocoadocs.org/docsets/RealReachability/1.2.0/)
4+
[![Platform](https://img.shields.io/badge/Platform-iOS-orange.svg)](http://cocoadocs.org/docsets/RealReachability/1.2.0/)
5+
[![Platform](https://img.shields.io/badge/Build-Passed-green.svg)](http://cocoadocs.org/docsets/RealReachability/1.2.0/)
66
#### We need to observe the REAL reachability of network for iOS. That's what RealReachability do.
77

88
# Why RealReachability?
@@ -35,7 +35,7 @@ To integrate RealReachability into your Xcode project using CocoaPods, specify i
3535

3636
```ruby
3737
source 'https://github.com/CocoaPods/Specs.git'
38-
platform :ios, '7.0'
38+
platform :ios, '8.0'
3939

4040
pod 'RealReachability'
4141
```
@@ -135,12 +135,18 @@ ReachabilityStatus status = [reachability currentReachabilityStatus];
135135
136136
Once the reachabilityWithBlock was called, the "currentReachabilityStatus" will be refreshed synchronously.
137137
#### 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!
138139
Please make sure the host you set here is available for pinging. Large, stable website suggested.
139140
This step is optional. If you do not set this, our default host is: www.apple.com.
140141
You may set your own host any time you like. Codes just like below:
142+
141143
```
142144
GLobalRealReachability.hostForPing = @"www.apple.com";
145+
GLobalRealReachability.hostForCheck = @"www.youOwnHostExample.com";
143146
```
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.
144150
145151
#### Get current WWAN type (optional)
146152
```

0 commit comments

Comments
 (0)