摘要:
- (void)viewDidLoad{ [superviewDidLoad]; // slider 控制播放速度 UISlider *slider = [[UISlider alloc] initWithFrame:CGRectMake(40, 250, 150, 30)]; [sel... 阅读全文
posted @ 2014-04-17 16:42
忆轩
阅读(408)
评论(0)
推荐(0)
摘要:
#pragma mark - 轻扫// 开始点击- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ UITouch *touch = [touches anyObject]; _startPoint = [touc... 阅读全文
posted @ 2014-04-17 09:02
忆轩
阅读(117)
评论(0)
推荐(0)
摘要:
- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event{ UITouch *touch = [touches anyObject];// 某一个手指 CGPoint currentPoint = [touch locati... 阅读全文
posted @ 2014-04-17 09:01
忆轩
阅读(1011)
评论(0)
推荐(0)
摘要:
UIView支持触摸事件 因为继承于UIResponder,而且支持多点触摸,使用时需要定义UIView子类,实现触摸相关的方法- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;点击开始时执行此方法(多么见名知意)- ... 阅读全文
posted @ 2014-04-17 08:59
忆轩
阅读(205)
评论(0)
推荐(0)