问题
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