论坛首页 移动开发技术论坛

ipad iphone 屏幕触摸事件编写

浏览 2591 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (1)
作者 正文
   发表时间:2011-08-25  
iOS
 新手在编写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;
论坛首页 移动开发技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics