Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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
You can’t perform that action at this time.