1.监听属性的变化
TUHomeViewModel *model = [[TUHomeViewModel alloc] init];
[RACObserve(model, dataArray) subscribeNext:^(id x) {
NSLog(@”haha is %@”,x);
}];
希望可以帮到你,Best wishes
1.监听属性的变化
TUHomeViewModel *model = [[TUHomeViewModel alloc] init];
[RACObserve(model, dataArray) subscribeNext:^(id x) {
NSLog(@”haha is %@”,x);
}];
希望可以帮到你,Best wishes