UITouch
来源:互联网 发布:淘宝上办学历是真的吗 编辑:程序博客网 时间:2024/05/20 13:16
// 摇
- (void)motionBegan:(UIEventSubtype)motion withEvent:(UIEvent *)event { self.view.backgroundColor = [UIColor colorWithRed:arc4random() % 256 / 255.0 green:arc4random() % 256 / 255.0 blue:arc4random() % 256 / 255.0 alpha:1]; NSLog(@"摇一摇开始");}- (void)motionEnded:(UIEventSubtype)motion withEvent:(UIEvent *)event { NSLog(@"摇一摇结束");}- (void)motionCancelled:(UIEventSubtype)motion withEvent:(UIEvent *)event { NSLog(@"摇一摇取消");}
// 触摸
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { // 点击空白处回收键盘 [self.myTextField resignFirstResponder]; NSLog(@"触摸开始");}- (void)touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event { NSLog(@"触摸取消");}- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event { NSLog(@"触摸结束");}- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event { NSLog(@"触摸移动");}
0 0
- UITouch
- UITouch
- UITouch
- UITouch
- UITouch
- UITouch
- UITouch
- UITouch
- UITouch
- UITouch
- UITouch
- UITouch
- UITouch UIGestureRecognizer
- UITouch详解
- uitouch用法
- UITouch使用
- UIResponder UITouch
- UITouch类
- UI10_TableView的编辑
- Target-Action
- this 指针
- 正则表达式
- HDU 5372 Segment Game
- UITouch
- Unity2D学习笔记(二):sprite动画编辑
- 8月11日----数据库、serverlet
- socket bind failed解决方案
- 如何成为一名卓越的前端工程师
- light oj 1021 状态压缩dp
- ZOJ2836 Number Puzzle【容斥原理】
- hdu 5373 the shortest problem
- 排序算法总结