简体   繁体   中英

Missing rac_signalForControlEvents in RAC5

Now i update the ReactiveCocoa to 5(version 4.2.2) for the swift3. But there has not api rac_signalForControlEvents(.TouchUpInside) for UIButton,which i use in previous version

Is there anyone know? How to resolve that?

Some part of the Obj-C API have been divided in another framework : ReactiveObjC.

I needed to install this framework to access these methods.

Solution :

As stated in README (Objective-C and Swift section), those Objective-C API are splitted out to ReactiveObjC framework. You need to add https://github.com/ReactiveCocoa/ReactiveObjC as a submodule, link the framework, then import ReactiveObjC.

Please see the following discussion on the issue :

https://github.com/ReactiveCocoa/ReactiveCocoa/issues/3197

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM