-(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中屏幕触摸和摇晃的方法
最新推荐文章于 2022-06-02 12:15:00 发布