我想添加MPMoviePlayerController
to a UIView
。
首先,我在 xib 文件中放置了一个视图,名为 youTubeView。 youtube播放器是MPMoviePlayerController
.
[youtubePlayer.view setFrame:youTubeView.frame];
[youTubeView addSubview:youtubePlayer.view];
[youtubePlayer play];
我想要 youtubePlayer 的视图覆盖在 youTubeView 上。但是youtubePlayer的视图很宽,它只是覆盖了youTubeView的一部分。为什么 ?
Try this
[youtubePlayer.view setFrame:youTubeView.bounds];
[youTubeView addSubview:youtubePlayer.view];
[youtubePlayer play];
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)