浏览代码

playback: minor audio playback appearance fix

Felix Paul Kühne 11 年之前
父节点
当前提交
f526c86b12
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. 9 0
      Sources/VLCMovieViewController.m

+ 9 - 0
Sources/VLCMovieViewController.m

@@ -1330,6 +1330,15 @@
            || toInterfaceOrientation != UIInterfaceOrientationPortraitUpsideDown;
 }
 
+- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration {
+    [super willRotateToInterfaceOrientation:toInterfaceOrientation duration:duration];
+
+    if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) {
+        if (self.artworkImageView.image)
+            self.trackNameLabel.hidden = UIInterfaceOrientationIsLandscape(toInterfaceOrientation);
+    }
+}
+
 #pragma mark - AVSession delegate
 - (void)beginInterruption
 {