Iphone 苹果电影播放器示例调整大小

Iphone 苹果电影播放器示例调整大小,iphone,Iphone,我过去经常在我的ipod中观看视频流。但是视频总是比屏幕大。如何调整视频视图的大小?我曾尝试在很多地方设置框架尺寸,但没有成功 我感谢所有的提示和帮助。试试这个 MPMoviePlayerViewController * moviePlayerVC = [[MPMoviePlayerViewController alloc]initWithContentURL:Video URL String]; moviePlayerVC.moviePlayer.allowsAirPlay = YES; mo

我过去经常在我的ipod中观看视频流。但是视频总是比屏幕大。如何调整视频视图的大小?我曾尝试在很多地方设置框架尺寸,但没有成功

我感谢所有的提示和帮助。

试试这个

MPMoviePlayerViewController * moviePlayerVC = [[MPMoviePlayerViewController alloc]initWithContentURL:Video URL String];
moviePlayerVC.moviePlayer.allowsAirPlay = YES;
moviePlayerVC.view.frame = CGRectMake(10, 50, 300, 300);
moviePlayerVC.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
[self.view addSubview:moviePlayerVC.view];

好的,但是我把这个放在哪个文件里了?我使用的是示例电影播放器,来自Apple.video url字符串的意思是,获取视频的完整路径