3

是否可以仅翻转 MPMoviePlayerController 的视频部分并使播放器的控件保持不变?当我尝试翻转视频时,它也会翻转控件。

CGAffineTransform trans = CGAffineTransformIdentity;
trans = CGAffineTransformScale(trans, -1, 1);
[MoviePlayer.view setTransform:trans];
4

1 回答 1

1

尝试这个:

UIView* Flipview = [[UIView alloc]init];
    for (UIView* view in [theMovie.view subviews]) 
    {
        Flipview=view;
        NSLog(@"%@",view);
    }



     [UIView beginAnimations:nil context:nil];
            [UIView setAnimationDuration:1.0];
            [UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:Flipview cache:YES];

            [UIView commitAnimations];

用movieplayerview改变self.view,看看它是否工作。

希望能帮助到你!!

于 2013-07-26T09:33:18.660 回答