在TabBarController中旋转Three20 TTPhotoViewController

Ahm*_*ali 7 objective-c rotation three20

在一个空的Rotation 上添加Three20 TTPhotoViewControllerUIWindow就像一个魅力.

但是,当我移动TTPhotoViewControllerUINavigationController内部创建时,UITabBarController它根本不会旋转.

我确保每个功能都返回YESshouldAutorotateToInterfaceOrientation.

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"]];
Run Code Online (Sandbox Code Playgroud)


更新1: 阅读一些帖子后,我现在可以只旋转图像,TTScrollView但导航栏不旋转.

更新2: 我已经进行了子类化UITabBarControllerUINavigationController覆盖shouldAutorotateToInterfaceOrientation,但它没有帮助.

Ahm*_*ali 3

TabBarController我通过从对象中删除 ,奇怪地解决了我的问题Window,当返回时,我再次TabBarController添加window