当前位置: 代码迷 >> Iphone >> ipad iphone 银幕触摸事件编写
  详细解决方案

ipad iphone 银幕触摸事件编写

热度:80   发布时间:2016-04-25 06:35:08.0
ipad iphone 屏幕触摸事件编写
 新手在编写ipad和iphone的屏幕触摸事件的时候往往不知道如何处理。
其实只要再UIController里面重写一下方法即可:
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event;
- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event;
- (void)touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event;
  相关解决方案