[英]didSelectItemAtIndexPath doesn't work normally
I have a problem when tap an item into CollectionView. 将项目轻按到CollectionView时出现问题。
didSelectItemAtIndexPath doesn't called when tapped the item. 轻按该项时,didSelectItemAtIndexPath不被调用。 Only execute this method when hold the item. 仅在按住项目时执行此方法。
This is the method implementation. 这是方法的实现。
- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath {
NSLog(@"did select at index path %@", indexPath);
_magazine = [[AppController instance] magazines][indexPath.row];
[self loadEditionsForMagazine:_magazine];
_magazineEditionsView.hidden = NO;
}
My CollectionView is linked to the datasource and delegate. 我的CollectionView链接到数据源和委托。
Thanks. 谢谢。
Check these: 检查这些:
UICollectionView
. UICollectionView
没有任何UICollectionView
。 UICollectionView
receiving gesture before UICollectionView
. 无子视图UICollectionView
之前接收的手势UICollectionView
。 Hope this helps.. :) 希望这可以帮助.. :)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.