ソースを参照

Library View: allow rotation on iPad

Felix Paul Kühne 12 年 前
コミット
db018efc8b
1 ファイル変更15 行追加0 行削除
  1. 15 0
      AspenProject/VLCPlaylistViewController.m

+ 15 - 0
AspenProject/VLCPlaylistViewController.m

@@ -208,6 +208,21 @@
     [self.navigationController pushViewController:self.aboutViewController animated:YES];
 }
 
+/* deprecated in iOS 6 */
+- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation {
+    return YES; // We support all 4 possible orientations
+}
+
+/* introduced in iOS 6 */
+- (NSUInteger)supportedInterfaceOrientations {
+    return UIInterfaceOrientationMaskAll;
+}
+
+/* introduced in iOS 6 */
+- (BOOL)shouldAutorotate {
+    return YES;
+}
+
 #pragma mark - tab bar
 - (void)tabBar:(UITabBar *)tabBar didSelectItem:(UITabBarItem *)item
 {