rac_signalForSelector: needs empty implementation

后端 未结 1 1184
失恋的感觉
失恋的感觉 2021-02-06 09:01

I have a class that implements the UICollectionViewDelegate protocol.

I\'m using rac_signalForSelector: to register selection like this:

[self rac_signal         


        
相关标签:
1条回答
  • 2021-02-06 09:21

    Make sure you call -rac_signalForSelector: before you set your object as a delegate. Some Apple frameworks will check to see if your class responds to a certain delegate method selector when you set the delegate object, and cache that information, so if you haven't called -rac_signalForSelector: by that time and you don't explicitly implement the method, those delegate methods won't ever get called.

    0 讨论(0)
提交回复
热议问题