Nel nuovo UICollectionView non vedo come aggiungere un'ombra a UICollectionViewCell. Come andrei su questo. Dovrei aggiungere un'altra vista?UICollectionViewCell shadow color
[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;
Non è molto inefficiente per chiamare '[self.collectionView cellForItemAtIndexPath: [self.collectionView indexPathForItemAtPoint: [recognizer locationInView: [self view]]]] 'più volte? –