ReactiveCocoa / ReactiveObjC

The 2.x ReactiveCocoa Objective-C API: Streams of values over time
MIT License
2.6k stars 496 forks source link

RACObserve(target, key) #171

Open wyxuan opened 4 years ago

wyxuan commented 4 years ago

why use RACObserve(target, key) and RAC(target, key) error. 'NSInvalidArgumentException', reason: '+[NSString stringWithUTF8String:]: unrecognized selector sent to class

wyxuan commented 4 years ago

use [target_ rac_valuesForKeyPath:@"key" observer:self]; can work