I have an MPMoviePlayerController view added as a subview on my ViewController.
I use layoutSubviews to resize the view during orientation changes.
When I play a movie in full screen mode and while still in full screen mode, rotate the phone, sometimes when I exit full screen mode my navigation bar “hides” halfway below the status bar, as if the origin for both was the same with the line state from above.
I am wondering if I am doing something wrong ... can anyone help?
Thank!
, , , frameSontroller.navigationBar 0,20 :
self.navigationController.navigationBar.frame = CGRectMake(0, 20, self.navigationController.navigationBar.frame.size.width, self.navigationController.navigationBar.frame.size.height);
, , Apple:
, . , , . UINavigationBar, , initWithNavigationBarClass: toolbarClass: . , navigationBarHidden setNavigationBarHidden: :
https://developer.apple.com/library/ios/documentation/uikit/reference/UINavigationController_Class/Reference/Reference.html
, :1) "" .
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(playerChangedState) name:@"UIMoviePlayerControllerWillExitFullscreenNotification" object:nil];
2) :
// run this method on the main thread [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleDefault]; [self.navigationController setNavigationBarHidden:YES]; [self.navigationController setNavigationBarHidden:NO animated:YES];
. iOS 7, iOS.
, - : MPMoviePlayerController
Basically, I had to add a delayed call to set [UIApplication sharedApplication] .statusBarHidden = NO;
(published here, just someone else has this problem)
Source: https://habr.com/ru/post/1796177/More articles:Texture Management OpenGL - game-engineЗахват SQL-инъекций в классической форме asp-reposting ставит множество тиков - asp-classichttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1796174/how-do-i-clone-a-github-repository-and-auto-overwrite-existing-contents&usg=ALkJrhjb9gMUM_eR3vmUIqYf8Cl0pBTJawWhy does RTTI optimization slow down? - optimizationVisualForce, Apex: repeat, for Javascript Update array - javascriptIs ReaderWriterLockSlim the right choice? - multithreadingSelenium Webdriver - How to skip waiting for a page to load after a click and continue - ruby | fooobar.comhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1796180/pointers-to-incomplete-types&usg=ALkJrhiTYPDXf4pxu4r4gM6sXEEtPKWotwHow to get browser time zone using Flex / AS3? - timezoneНевозможно получить кнопку настроек для отображения живых обоев - androidAll Articles