2011-09-27 50 views
7

添加Three20TTPhotoViewController在一個空的UIWindow旋轉工作像一個魅力。旋轉Three20 TTPhotoViewController裏面TabBarController

但是當我移動TTPhotoViewControllerUINavigationController創建一個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都UITabBarControllerUINavigationController覆蓋shouldAutorotateToInterfaceOrientation,但它並沒有幫助。

回答

3

我已經古怪從Window對象中刪除TabBarController,並打算回來時,我的TabBarControllerwindow再次添加解決了我的問題。

0

你可以只旋轉滾動視圖。不管怎麼樣,如果你旋轉navController它看起來奇怪,當你彈出photoviewcontroller(如果您的畫廊是不是RootViewController的)。我旋轉和滾動視圖牆根導航欄和底部工具欄進入橫向模式時,它看起來不錯。

+0

非常偉大的想法,我達到了這個解決方案,而隱藏導航欄的思考,就像你說的,它看起來奇怪,如果你不隱藏導航欄,但我的解決方案是非常完美的,我還沒有觸及的Three20庫所有。 –

相關問題