Browse Source

Merge pull request #155 from abunur/patch-2

Update README.md
Ashley Mills 9 years ago
parent
commit
c740b1f3e1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      README.md

+ 1 - 1
README.md

@@ -160,7 +160,7 @@ let reachability = Reachability()!
 
 //declare this inside of viewWillAppear
 
-    NSNotificationCenter.defaultCenter().addObserver(self, selector: "reachabilityChanged:",name: ReachabilityChangedNotification,object: reachability)
+     NotificationCenter.default.addObserver(self, selector: #selector(self.reachabilityChanged),name: ReachabilityChangedNotification,object: reachability)
     do{
       try reachability.startNotifier()
     }catch{