添加Three20TTPhotoViewController在一個空的UIWindow
旋轉工作像一個魅力。旋轉Three20 TTPhotoViewController裏面TabBarController
但是當我移動TTPhotoViewController從UINavigationController
創建一個UITabBarController
裏面根本不會轉動。
我確信我回到YES爲每shouldAutorotateToInterfaceOrientation
功能。
與旋轉側的UITabBarController不Three20照相館工作?
我該怎麼做?
[[TTURLRequestQueue mainQueue] setMaxContentLength:0];
TTNavigator *navigator = [TTNavigator navigator];
navigator.persistenceMode = TTNavigatorPersistenceModeAll;
navigator.window = [UIApplication sharedApplication].keyWindow;
TTURLMap *map = navigator.URLMap;
[map from:@"tt://appPhotos" toSharedViewController:[PhotoViewController class]];
[navigator openURLAction:[TTURLAction actionWithURLPath:@"tt://appPhotos"]];
更新1: 閱讀一些帖子後,我現在只能內部
TTScrollView
旋轉圖像,但導航欄不旋轉。
更新2: 我有子類-ED都UITabBarController
和UINavigationController
覆蓋shouldAutorotateToInterfaceOrientation
,但它並沒有幫助。
非常偉大的想法,我達到了這個解決方案,而隱藏導航欄的思考,就像你說的,它看起來奇怪,如果你不隱藏導航欄,但我的解決方案是非常完美的,我還沒有觸及的Three20庫所有。 –