iphone – UISwipeGestureRecognizer手势起点
发布时间:2020-12-14 18:07:58 所属栏目:百科 来源:网络整理
导读:是否可以从UISwipeGestureRecognizer获取手势起点.喜欢它的可能性 - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { UITouch * touch = [touches anyObject]; gestureStartPoint = [touch locationInView:self];} 解决方法 根据 UISwipe
是否可以从UISwipeGestureRecognizer获取手势起点.喜欢它的可能性
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { UITouch * touch = [touches anyObject]; gestureStartPoint = [touch locationInView:self]; } 解决方法
根据
UISwipeGestureRecognizer documentation你可以:
PS:你真的应该先看看文档,答案是在UISwipeGestureRecognizer的类引用中,应该不难找到.作为开发人员的一部分是能够查找的东西,Apple有优秀的文档,使用它! (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |