在空的UIWindow
旋转上添加Three20 TTPhotoViewController旋转就像是一种魅力。
但是,当我将TTPhotoViewController从UINavigationController
中的UITabBarController
创建时,它根本不会旋转。
我确保为每个shouldAutorotateToInterfaceOrientation
函数返回是。
Three20相册可在带有旋转的侧面UITabBarController中工作吗?
我该怎么做?
[[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:
我已经对
UITabBarController
和UINavigationController
进行了子类化以覆盖shouldAutorotateToInterfaceOrientation
,但这没有帮助。 最佳答案
我已经从TabBarController
对象中删除了Window
来解决了我的问题,当我返回时,我再次将TabBarController
添加到了window
中。