首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > Iphone >

ipad iphone 银幕触摸事件编写

2012-08-15 
ipad iphone 屏幕触摸事件编写 新手在编写ipad和iphone的屏幕触摸事件的时候往往不知道如何处理。其实只要

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;

热点排行