是否可以仅翻转 MPMoviePlayerController 的视频部分并让播放器的控件保持原样?当我尝试翻转视频时,它也会翻转控件。
CGAffineTransform trans = CGAffineTransformIdentity;
trans = CGAffineTransformScale(trans, -1, 1);
[MoviePlayer.view setTransform:trans];
最佳答案
试试这个:
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 并查看它是否有效。
希望对您有所帮助!!
关于ios - 水平翻转 MPMoviePlayerController,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17877749/