नए UICollectionView में मुझे नहीं लगता कि UICollectionViewCell में छाया कैसे जोड़ें। मैं इसे किस तरह लूं। क्या मैं एक और दृश्य जोड़ूंगा?UICollectionViewCell छाया रंग
[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;
यह बहुत अक्षम कॉल करने के लिए नहीं है '[self.collectionView cellForItemAtIndexPath: [self.collectionView indexPathForItemAtPoint: [पहचानकर्ता स्थानInView: [स्वयं दृश्य]]]] 'कई बार? –