Created
March 27, 2016 00:11
-
-
Save aminbenarieb/f821d58a2731af71eba6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func handleTap(sender: UITapGestureRecognizer? = nil) { | |
var indexPath: NSIndexPath! | |
if let label = sender?.view as? UILabel | |
{ | |
if let superview = label.superview { | |
if let cell = superview.superview as? UICollectionViewCell { | |
indexPath = wordBuilder.indexPathForCell(cell) | |
} | |
} | |
let cell = wordBuilder.dequeueReusableCellWithReuseIdentifier(reuseIdentifier, forIndexPath: indexPath) | |
// working with cell | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment