I am using collection view in iPhone application to show list. now while using the cell for row at the index path method I am using set selected to 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
Thanks.
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.