在空的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:
我已经对UITabBarControllerUINavigationController进行了子类化以覆盖shouldAutorotateToInterfaceOrientation,但这没有帮助。

最佳答案

我已经从TabBarController对象中删除了Window来解决了我的问题,当我返回时,我再次将TabBarController添加到了window中。

07-28 02:36
查看更多