コレクションビューがあります。プログラムでセルを選択したいと思います。これは私が使用するコードです
[_collectionView selectItemAtIndexPath:[NSIndexPath indexPathForItem:currentSelectedVideo inSection:0] animated:YES scrollPosition:UICollectionViewScrollPositionNone];
何らかの理由で機能:
-(void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath
-(void)collectionView:(UICollectionView *)collectionView didDeselectItemAtIndexPath:(NSIndexPath *)indexPath
呼び出されないため、選択したセルを表示するために使用している視覚効果が画面に表示されません。
それは適切な行動ですか?