如何从通知名称中创建信号?例如,我想从:
[[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)