make sure link's longPress gets priority response

This commit is contained in:
nixzhu
2015-08-25 12:21:27 +08:00
parent 31188ac418
commit d3050daf8a
2 changed files with 12 additions and 0 deletions
@@ -92,6 +92,12 @@ class ChatLeftTextCell: ChatBaseCell {
extension ChatLeftTextCell: UIGestureRecognizerDelegate {
func gestureRecognizer(gestureRecognizer: UIGestureRecognizer, shouldRecognizeSimultaneouslyWithGestureRecognizer otherGestureRecognizer: UIGestureRecognizer) -> Bool {
return true
}
func gestureRecognizer(gestureRecognizer: UIGestureRecognizer, shouldRequireFailureOfGestureRecognizer otherGestureRecognizer: UIGestureRecognizer) -> Bool {
return true
}
}
@@ -114,6 +114,12 @@ class ChatRightTextCell: ChatRightBaseCell {
extension ChatRightTextCell: UIGestureRecognizerDelegate {
func gestureRecognizer(gestureRecognizer: UIGestureRecognizer, shouldRecognizeSimultaneouslyWithGestureRecognizer otherGestureRecognizer: UIGestureRecognizer) -> Bool {
return true
}
func gestureRecognizer(gestureRecognizer: UIGestureRecognizer, shouldRequireFailureOfGestureRecognizer otherGestureRecognizer: UIGestureRecognizer) -> Bool {
return true
}
}