[英]UICollectionView cell user interaction disabled
I am using collection view in iPhone application to show list. 我正在iPhone应用程序中使用收藏夹视图来显示列表。 now while using the cell for row at the index path method I am using set selected to yes. 现在,当在索引路径方法中将单元格用于行时,我正在使用选择为yes的集合。 this will make my cell user interaction disable. 这将使我的手机用户交互功能失效。 I don't know what is the reason behind it. 我不知道背后的原因是什么。
i solved it by adding method. 我通过添加方法解决了。
[newCell setSelected:YES];
[collectionView selectItemAtIndexPath:indexPath animated:YES scrollPosition:UICollectionViewScrollPositionNone];
accordingly. 因此。
as per given in this link UICollectionView Select and Deselect issue 按照此链接中给出的UICollectionView选择和取消选择问题
Thanks. 谢谢。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.