ios中屏幕触摸和摇晃的方法

来源:互联网 发布:帝国时代2知乎 编辑:程序博客网 时间:2024/06/07 06:32
-(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{    //摇晃取消}
阅读全文
0 0
原创粉丝点击