Skip to content

Commit

Permalink
Prevent multiple comment cell touches
Browse files Browse the repository at this point in the history
  • Loading branch information
weiran committed Apr 30, 2016
1 parent a6f201d commit dab2902
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Client/Post/CommentTableViewCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ class CommentTableViewCell : UITableViewCell, UITextViewDelegate {

override func awakeFromNib() {
contentView.addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(CommentTableViewCell.cellTapped(_:))))
exclusiveTouch = true
contentView.exclusiveTouch = true
}

func cellTapped(gestureRecognizer: UITapGestureRecognizer) {
Expand Down

0 comments on commit dab2902

Please sign in to comment.