如何在 MPMoviePlayerController 中添加文本(uilabel)
我正在做一个应用程序,我正在使用 MPMoviePlayerController 依次播放两个视频。在第二个视频中间播放第一个视频后,它显示空白屏幕(白屏)。当时我想显示一些它只是说正在加载...通过使用 UILabel 的文本。我想显示文本而不是白屏。
我怎样才能做到这一点。
任何想法请..
谢谢
I'm doing one application in that,i'm playing two videos one after another using MPMoviePlayerController.After the first video played in the middle of the second video it shows blank screen(white screen).At the time i want to display some text it simply says Loading...by using UILabel.Instead of white screen i want to display the text .
How can i do this.
Any ideas please..
Thank You
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
MPMoviePlayerController 有一个属性
view
。只需将 UILabel 添加为该视图的子视图即可。您还想收听适当的通知以了解第二部电影何时开始播放,以便您可以删除 UILabel。有关详细信息,请参阅文档。
The MPMoviePlayerController has a property
view
. Just add your UILabel as a subview of that view.You'd also want to listen for the appropriate notifications to know when the second movie started to play so you could remove your UILabel. See the documentation for details.
将标签添加为电影播放器的子视图
To add the label as sub view of the movie player