Dans la nouvelle UICollectionView je ne vois pas comment ajouter une ombre à un UICollectionViewCell. Comment j'irais à ce sujet. Est-ce que j'ajouterais une autre vue?UICollectionViewCell couleur de l'ombre
[self.collectionView cellForItemAtIndexPath:[self.collectionView indexPathForItemAtPoint:[recognizer locationInView:[self view]]]].layer.shadowPath = [UIBezierPath bezierPathWithRect:rect].CGPath;
[self.collectionView cellForItemAtIndexPath:[self.collectionView indexPathForItemAtPoint:[recognizer locationInView:[self view]]]].layer.shadowColor = [UIColor yellowColor].CGColor;
[self.collectionView cellForItemAtIndexPath:[self.collectionView indexPathForItemAtPoint:[recognizer locationInView:[self view]]]].layer.shadowRadius = .5;
[self.collectionView cellForItemAtIndexPath:[self.collectionView indexPathForItemAtPoint:[recognizer locationInView:[self view]]]].layer.shadowOpacity = .1;
est-il pas très inefficace d'appeler '[self.collectionView cellForItemAtIndexPath: [self.collectionView indexPathForItemAtPoint: [Recognizer locationInView: [self view]]]] 'plusieurs fois? –