您的位置:首页 > 移动开发 > IOS开发

ios 旋转手势

2016-01-12 15:04 471 查看
// UIRotationGestureRecognizer *rota =[[UIRotationGestureRecognizer alloc]initWithTarget:self action:@selector(toucheAction:)];
// [self.view addGestureRecognizer:rota];

// UIRotationGestureRecognizer *IDD= ID;
// float hudu =IDD.rotation ;
// float jiaodu =IDD.rotation *180/M_PI;
// //角度=
弧度 *180/π
// if (hudu>0) {
// NSLog(@"顺时针转===");
// }else if (hudu<0){
// NSLog(@"逆时针转动");
// }
// NSLog(@"弧度%f,角度%f,volicatiy%f",hudu,jiaodu,IDD.velocity);
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: