如何在 MPMoviePlayerController 中添加文本(uilabel)

发布于 2024-10-20 08:45:52 字数 181 浏览 8 评论 0原文

我正在做一个应用程序,我正在使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

盛夏已如深秋| 2024-10-27 08:45:52

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.

寂寞美少年 2024-10-27 08:45:52

将标签添加为电影播放器​​的子视图

[[player view] addSubview:label];

To add the label as sub view of the movie player

[[player view] addSubview:label];
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文