소스 검색

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
 {