swift ReactiveSwift框架下通知(NotificationCenter)的使用

实现:

NotificationCenter.default.post(name: Notification.Name(rawValue: "NotificationName"), object: object)

注册:

NotificationCenter.default.reactive.notifications(forName: Notification.Name(rawValue: "NotificationName")).observeValues {  [unowned self] object in
//实现
        }

 

你可能感兴趣的:(swift,ReactiveCocoa)