ReactiveObjC
ReactiveObjC copied to clipboard
I installed ReactiveObjC by cocopods ,I import it like "#import <ReactiveObjC/ReactiveObjC.h>" ,but when I use it ,an error occured like"No visible @interface for 'aviewController' declares the selector 'rac_observeKeyPath:options:observer:block:'"
I installed ReactiveObjC by cocopods ,I import it like "#import <ReactiveObjC/ReactiveObjC.h>" ,but when I use it ,an error occured like"No visible @interface for 'aviewController' declares the selector 'rac_observeKeyPath:options:observer:block:'" whatis wrong? and thank you very much!!!
The ReactiveCocoa.h file don't include NSObject+RACKVOWrapper.h which rac_observeKeyPath:options:observer:block: in. so if you want to use the rac_observeKeyPath:options:observer:block: method, you should import NSObject+RACKVOWrapper.h manually.