MPMoviePlayerController - 如何阻止它隐藏其他项目?
MPMoviePlayerController 几乎按照我想要的方式工作,除了它覆盖了屏幕上的任何其他项目,例如我的导航栏。有没有办法阻止这种情况发生?
MPMoviePlayerController works almost as i'd like it to, except that it covers over any other on screen items, for example my navigation bar. Is there a way to stop this from happening?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
与许多其他东西一样,它的播放器基于 UIView。
您是否尝试过通过以下内容告诉后面的对象位于前面:
bringSubviewToFront:
sendSubviewToBack:
insertSubview:atIndex:
insertSubview:aboveSubview:
insertSubview:belowSubview:
exchangeSubviewAtIndex:withSubviewAtIndex:
由于您的视图已经插入到您的超级视图中,您可以轻松地以您喜欢的顺序为每个视图调用一次
bringSubviewToFront:
。Its player is based on a UIView, like many othEr things.
Have you tried telling objecTs behind it to get in front, with the following :
bringSubviewToFront:
sendSubviewToBack:
insertSubview:atIndex:
insertSubview:aboveSubview:
insertSubview:belowSubview:
exchangeSubviewAtIndex:withSubviewAtIndex:
Since your views are already inserted into your superview, you could easily call
bringSubviewToFront:
once for each view in whatever order you like.