这是我做的一个Demo,红色方块与蓝色矩形的super view都是self.view,当红色方块做绕Y轴旋转动画时,只看到一半的红色方形在旋转。
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
// image view
_pmainPicture=[[UIImageView alloc]initWithFrame:CGRectMake(0, 100, [[UIScreen mainScreen] bounds].size.width, 190.0f)];
_pmainPicture.backgroundColor = [UIColor blueColor];
_pmainPicture.contentMode = UIViewContentModeScaleAspectFill;
_pmainPicture.userInteractionEnabled = YES;
[self.view addSubview:_pmainPicture];
//button
_pButton = [UIButto