瀏覽代碼

Merge pull request #205 from patreu22/master

Made Notification Center Tutorial work after Swift changes
Ashley Mills 8 年之前
父節點
當前提交
5fe7a30064
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      README.md

+ 1 - 1
README.md

@@ -200,7 +200,7 @@ and for stopping notifications
 
 ```swift
 reachability.stopNotifier()
-NSNotificationCenter.defaultCenter().removeObserver(self,
+NSNotificationCenter.default.removeObserver(self,
                                                     name: ReachabilityChangedNotification,
                                                     object: reachability)
 ```