jjzjj

leftDoorView

全部标签

ios - 使用 CATransform3DRotate 制作动画

我的代码在下面,但是动画是立即发生的,即View不再可见:UIView*leftDoorView=[[UIViewalloc]initWithFrame:CGRectMake(0,0,self.view.bounds.size.width/2,self.view.bounds.size.height)];leftDoorView.backgroundColor=[UIColorgreenColor];leftDoorView.layer.anchorPoint=CGPointMake(0.0,0.5);[self.viewaddSubview:leftDoorView];leftDoo