【发布时间】:2011-09-27 09:53:40
【问题描述】:
在一个空的UIWindow 上添加Three20 TTPhotoViewController 旋转就像一个魅力。
但是当我将 TTPhotoViewController 从 UINavigationController 创建到 UITabBarController 中时,它根本不会旋转。
我确保为每个 shouldAutorotateToInterfaceOrientation 函数返回 YES。
Three20 Photo Gallery 是否可以在带有旋转的 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,但这没有帮助。
【问题讨论】:
标签: objective-c rotation three20