如何检测UIScrollview中的双击?检测双击UIScrollView
我想:
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{
UITouch *touch = [touches anyObject];
if (touch.tapCount == 2) {
// some operations here
}
}
但这不是检测UIScrollView中双击,有没有其他的方法来检测双击?
问候
只是在发布时格式化一点。如果您将代码复制并粘贴到您的问题中并突出显示所有内容,然后单击输入框上方的011010按钮,则会正确格式化它。 – 2010-10-11 10:12:46