手势 UIRotationGestureRecognizer 旋转

发布时间:2020-07-21 16:15:03 作者:缘起愿落
来源:网络 阅读:978




UIRotationGestureRecognizer * rotationGesture = [[UIRotationGestureRecognizer alloc]initWithTarget:self action:@selector(rotation:)];


   [redView addGestureRecognizer:rotationGesture];


 [rotationGesture release];





- (void)rotation:(UIRotationGestureRecognizer *)rotation
{
    rotation.view.transform = CGAffineTransformRotate(rotation.view.transform, rotation.rotation);
    rotation.rotation = 0;
}

推荐阅读:
  1. UIKit框架(16)手势识别器
  2. IOS学习之 手势操作

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

手势 旋转 uirotationgesturerec

上一篇:如何使用pth文件添加Python环境变量

下一篇:微信小程序如何实现漂亮的弹窗效果

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》