-(void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
//触摸开始
}
-(void)touchesCancelled:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
//取消触摸
}
-(void)touchesEnded:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
//触摸结束
}
-(void)touchesMoved:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
//移动
}
-(void)motionBegan:(UIEventSubtype)motion withEvent:(UIEvent *)event{
//摇晃开始
}
-(void)motionEnded:(UIEventSubtype)motion withEvent:(UIEvent *)event{
//摇晃结束
}
-(void)motionCancelled:(UIEventSubtype)motion withEvent:(UIEvent *)event{
//摇晃取消
}
ios中屏幕触摸和摇晃的方法
UIKit触控与运动事件
最新推荐文章于 2021-03-14 17:44:27 发布
4

被折叠的 条评论
为什么被折叠?



