[self.collectionView selectItemAtIndexPath:indexPath animated:YES scrollPosition:UICollectionViewScrollPositionNone];
[self collectionView:self.collectionView didSelectItemAtIndexPath:indexPath];
如果使用selectItemAtIndexPath:animated:scrollPosition:方法,就不会调用委托方法。
如果使用collectionView:didSelectItemAtIndexPath:委托方法,则就不会执行selectItemAtIndexPath:animated:scrollPosition:方法。