Hide StatusBar from MPMoviePlayerController

本文解决使用MPMoviePlayerController在iPad全屏播放视频时,状态栏始终显示的问题,通过代码示例展示了如何隐藏状态栏并保持UI流畅。

I've been struggling with a very annoying problem all day long and I hope I could find help on this board.

I'm using an MPMoviePlayerController to play a fullscreen movie on iPad and I can't figure how to remove the status bar which is always displayed despite all my efforts to make it go to hell.



this is not an answer, I am having the same issue. There is one part I can update however..

The status bar only shows when the controls show.

Clicking on the movie, hides the conrols & the status bar, clicking again, shows the controls, and the status bar comes back too.

I am also hiding the status bar programmatically just before I launch the movie.

[[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:NO];

and here is how I am adding the movie:

[[[UIApplication sharedApplication] keyWindow] addSubview: movieView];

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值