浏览代码

Use isReachableViaWiFi instead of isReachableViaWiFi() on README.md

tnantoka 8 年之前
父节点
当前提交
f6b4d033d6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      README.md

+ 1 - 1
README.md

@@ -141,7 +141,7 @@ reachability.whenReachable = { reachability in
     // this is called on a background thread, but UI updates must
     // be on the main thread, like this:
     DispatchQueue.main.async {
-        if reachability.isReachableViaWiFi() {
+        if reachability.isReachableViaWiFi {
             print("Reachable via WiFi")
         } else {
             print("Reachable via Cellular")