标签:code bsp scribe signal class void 接收 订阅 style
-(void)_test8{ /// RACSubject继承自RACSignal 但是RACSubject和RACSignal的区别? //1能接收1,2 //但是2只能接收2 RACSubject *subject = [RACSubject subject]; [subject subscribeNext:^(id x) { NSLog(@"订阅者1%@", x); }]; [subject sendNext:@"subject1"]; [subject subscribeNext:^(id x) { NSLog(@"订阅者2%@", x); }]; [subject sendNext:@"subject2"]; }
OC + RAC(七) RACSubject和RACSignal的区别
标签:code bsp scribe signal class void 接收 订阅 style
原文地址:https://www.cnblogs.com/liuw-flexi/p/10805848.html