How to present MPMoviePlayerViewController from UITabBarController?

I have a view controller that has been added to UITabBarController. In this view, the controller has a button that opens the movie with MPMoviePlayerViewController.

When I play the movie, the top navigation bar still overlays the movie, effectively blocking part of the screen.

If this view controller is not inside UITabBarController, however, the movie plays normally.

Does anyone know what is going on?

+3
source share
1 answer

. , , MPMoviePlayerViewController , UIViewController, presentMoviePlayerViewControllerAnimated:. : UIViewController:

[self presentMoviePlayerViewControllerAnimated:mp];

, UITabBarController, self - , , . presentMoviePlayerViewControllerAnimated: , UIViewController, UITabBarController. init, - [parentController presentMoviePlayerViewControllerAnimated:mp].

. , -.

+4

Source: https://habr.com/ru/post/1760468/


All Articles