Преглед изворни кода

Merge pull request #208 from ElegyD/master

Removed NS prefix from Notification
Ashley Mills пре 8 година
родитељ
комит
650c5f703e
1 измењених фајлова са 3 додато и 3 уклоњено
  1. 3 3
      README.md

+ 3 - 3
README.md

@@ -171,7 +171,7 @@ reachability.stopNotifier()
 
 ## Example - notifications
 
-This sample will use `NSNotification`s to notify when the interface has changed. They will be delivered on the **MAIN THREAD**, so you *can* do UI updates from within the function.
+This sample will use `Notification`s to notify when the interface has changed. They will be delivered on the **MAIN THREAD**, so you *can* do UI updates from within the function.
 
 ```swift
 //declare this property where it won't go out of scope relative to your listener
@@ -190,7 +190,7 @@ let reachability = Reachability()!
 and
 
 ```swift
-func reachabilityChanged(note: NSNotification) {
+func reachabilityChanged(note: Notification) {
 
   let reachability = note.object as! Reachability
 
@@ -210,7 +210,7 @@ and for stopping notifications
 
 ```swift
 reachability.stopNotifier()
-NSNotificationCenter.default.removeObserver(self,
+NotificationCenter.default.removeObserver(self,
                                                     name: ReachabilityChangedNotification,
                                                     object: reachability)
 ```