collectionView的didSelectItemAtIndexPath方法失效的问题

1,067 阅读1分钟

解决方法: 讲如下代理方法return YES或删除

  • (BOOL)collectionView:(UICollectionView *)collectionView shouldHighlightItemAtIndexPath:(NSIndexPath *)indexPath { return NO; }