0

我有一部电影在单击按钮时全屏在 MPMovieplayerViewcontroller 中播放。但 MPMoviePlayerViewController 顶部不显示导航栏。如何在播放电影时使导航栏可见?

4

1 回答 1

0

MPMoviePlayerViewcontroller是一个标准UIViewController,所以只需将其呈现为 a 的 rootViewControllerUINavigationController

IE

代替

[self presentViewController:myMoviePlayerViewController animated:YES completion:nil];

做:

UINavigationController *movieNavController = [[UINavigationController alloc] initWithRootViewController:myMoviePlayerViewController];
[self presentViewController:movieNavController animated:YES completion:nil];
于 2012-12-10T12:28:42.507 回答