使用gestureRecognizer
怎么实现,用户操作时有下列的效果?
touchDownInside
(视图变亮)touchUpInside
(确认动作)touchUpOutside
(取消和重置高亮显示)
谢谢咯
使用gestureRecognizer
怎么实现,用户操作时有下列的效果?
touchDownInside
(视图变亮)touchUpInside
(确认动作)touchUpOutside
(取消和重置高亮显示)
谢谢咯
在用户进行四种基本操作时使用方法:
1)触摸屏幕时:
-(void)touchesBegan:(NSSet*)touches withEvent:(UIEvent*)event;
2)手指滑过屏幕时(和手指触摸重复)
-(void)touchesMoved:(NSSet*)touches withEvent:(UIEvent*)event;
3)手指远离屏幕时
-(void)touchesEnded:(NSSet*)touches withEvent:(UIEvent*)event;
4)系统事件,中断屏幕触摸
-(void)touchesCancelled:(NSSet*)touches withEvent:(UIEvent*)event;