Commit c384b35e authored by Gleb Pinigin's avatar Gleb Pinigin

Fix autorotation in player view controller on iOS5.x

parent 6f7ffe09
......@@ -321,6 +321,13 @@
self.mediaItem.lastPosition = @([_mediaPlayer position]);
}
#pragma mark - autorotation
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation {
return UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad
|| toInterfaceOrientation != UIInterfaceOrientationMaskPortraitUpsideDown;
}
#pragma mark - External Display
- (BOOL)hasExternalDisplay
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment