-(BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch {
CGPoint point = [touch locationInView:self.tableView];
MomentCell *cell = [self.tableView cellForRowAtIndexPath:[self.tableView indexPathForRowAtPoint:point]];
if (cell.operationMenu.hasShow) {
return YES;
}else if (self.toolBar.textView.isFirstResponder){
return YES;
}
return NO;
}
本文介绍了一个iOS应用中处理特定手势的方法。通过判断手势位置及文本输入状态,决定是否接受触控事件,确保了操作菜单显示时及文本输入框激活时手势的正确响应。
5169

被折叠的 条评论
为什么被折叠?



