ReactiveObjC icon indicating copy to clipboard operation
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:'"

Open Goallying opened this issue 7 years ago • 1 comments

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!!!

Goallying avatar Oct 10 '18 09:10 Goallying

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.

faimin avatar Oct 10 '18 11:10 faimin