【发布时间】:2015-05-25 08:42:03
【问题描述】:
我的应用处于纵向模式。
当视频播放器进入全屏模式时,我想横向和纵向播放该视频。
moviePlayer = [[MPMoviePlayerController alloc]initWithContentURL:url];
[moviePlayer.view setAutoresizingMask:(UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth)];
[moviePlayer setScalingMode:MPMovieScalingModeFill];
moviePlayer.view.frame = CGRectMake(0, 0, self.videoPlayerView.frame.size.width, self.videoPlayerView.frame.size.height);
[self.videoPlayerView addSubview:moviePlayer.view];
我正在一个按钮上播放它。
【问题讨论】:
-
你的 rootViewController uinavigationcontroller 或 uitabbarcontroller 是什么??
-
问题的标题应该是重点。并在问题正文中使用一些解释。
-
您是否只是尝试运行应用程序然后打开模拟器?还是实际设备?
标签: ios objective-c