-
90 votesanswersviews
Swift 3上的NotificationCenter问题[重复]
这个问题在这里已有答案: NSNotificationCenter addObserver in Swift 11个答案 我试图使用 NSNotificationCenter . 这是我的代码: func savePost(){ let postData = NSKeyedArchiver.archivedData(withRootObject: _loadedpost) U... -
6 votesanswersviews
Swift 3中的NotificationCenter崩溃
它只是我,还是 NotificationCenter 成为Swift 3中的热点? :) 我有以下设置: // Yonder.swift extension Notification.Name { static let preferenceNotification = Notification.Name("preferencesChanged") } // I fire ...