开发者

Empty (white) line under UITableView after close MPMoviewPlayer from fullscreen mode

I have simple application with list of movies in UITableView. When I select some row, I open modal view controller what present MPMoviePlayerController.

[self.navigationController presentModalViewController:playerController animated:YES];

Also I set observer to catch message when player is finish playing. When playing is finished, I make

[self dismisModalViewControllerAnimated:YES];

If I click "Done" in player control, all work great. B开发者_Python百科ut if it's finish playing self in fullscreen mode I get white line in bottom of UITableView cels which have height 20px like status bar. Somebody have idea how to fix this issue?


I find solution. Before dismiss modal view just make

[[UIApplication sharedApplication] setStatusBarHidden:NO];

It's solve my problem. Also, when on viewDidLoad I call

[[UIApplication sharedApplication] setStatusBarHidden:YES];

For show MPMoviePlayer on full screen.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜