相关疑难解决方法(0)

如何使用Reactive Cocoa和通知

如何从通知名称中创建信号?例如,我想从:

[[NSNotificationCenter defaultCenter] addObserver:self
                                         selector:@selector(userDidChange:)
                                             name:kTTCurrentUserLoggedOffNotification
                                           object:nil];
Run Code Online (Sandbox Code Playgroud)

类似于:

[signalForName(kTTCurrentUserLoggedOffNotification) subscribeNext:^(id x){
...
}];
Run Code Online (Sandbox Code Playgroud)

ios reactive-cocoa

19
推荐指数
2
解决办法
8081
查看次数

标签 统计

ios ×1

reactive-cocoa ×1