在UICollectionView上加UITapGestureRecognizer手势时,点击哪都报
[NSIndexPath section]: message sent to deallocated instance
错误,查找了半天,才发现
http://*.com/questions/20453291/uicollectionview-crashes-randomly-because-of-highlighting-issue
后
-(BOOL) collectionView:(UICollectionView *)collectionView shouldHighlightItemAtIndexPath:(NSIndexPath *)indexPath{
return NO;
}
解决,但为什么呢,改天再去看一下,追进度先