【发布时间】:2014-02-24 22:23:38
【问题描述】:
我有一个实现 UICollectionViewDelegate 协议的类。
我正在使用 rac_signalForSelector: 来注册这样的选择:
[self rac_signalForSelector:@selector(collectionView:didSelectItemAtIndexPath:)]
但它只有在我离开 collectionView:didSelectItemAtIndexPath: 的空实现时才会触发:像这样:
- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath {
// Empty
}
我也尝试了 rac_signalForSelector:fromProtocol: 没有运气。
我正在使用 Reactive Cocoa 2.2.4
谢谢, 米克尔
【问题讨论】:
标签: ios objective-c reactive-cocoa