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

有些话、适合烂在心里 提交于 2020-01-16 18:26:40

问题


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. But 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?


回答1:


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.



来源:https://stackoverflow.com/questions/4671881/empty-white-line-under-uitableview-after-close-mpmoviewplayer-from-fullscreen

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!