随笔分类 -  手势交互(Gesture)

摘要:在 iPhone 或 iPad 的开发中,除了用touchesBegan / touchesMoved / touchesEnded这组方法来控制使用者的手指触控外,也可以用UIGestureRecognizer的衍生类別来进行判断。用UIGestureRecognizer的好处在于有现成的手势,开发者不用自己计算手指移动轨迹。UIGestureRecognizer的衍生类別有以下几种:UITapGestureRecognizerUIPinchGestureRecognizerUIRotationGestureRecognizerUISwipeGestureRecognizerUIPanGes 阅读全文
posted @ 2012-08-06 11:22 奔放小青年 阅读(379) 评论(0) 推荐(0) 编辑
摘要:来自:http://blog.csdn.net/shijiucdy/article/details/7364143-(void)viewDidLoad{ UISwipeGestureRecognizer*recognizer; recognizer = [[UISwipeGestureRecognizeralloc]initWithTarget:selfaction:@selector(handleSwipeFrom:)]; [recognizersetDirection:(UISwipeGestureRecognizerDirectionRight)]; [[selfview]addG... 阅读全文
posted @ 2012-08-03 16:55 奔放小青年 阅读(5281) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示