Browse Source

Library View: allow rotation on iPad

Felix Paul Kühne 12 years ago
parent
commit
db018efc8b
1 changed files with 15 additions and 0 deletions
  1. 15 0
      AspenProject/VLCPlaylistViewController.m

+ 15 - 0
AspenProject/VLCPlaylistViewController.m

@@ -208,6 +208,21 @@
     [self.navigationController pushViewController:self.aboutViewController animated:YES];
     [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
 #pragma mark - tab bar
 - (void)tabBar:(UITabBar *)tabBar didSelectItem:(UITabBarItem *)item
 - (void)tabBar:(UITabBar *)tabBar didSelectItem:(UITabBarItem *)item
 {
 {