Ahm*_*ali 7 objective-c rotation three20
在一个空的Rotation 上添加Three20 TTPhotoViewControllerUIWindow就像一个魅力.
但是,当我移动TTPhotoViewController从UINavigationController内部创建时,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)
TTScrollView但导航栏不旋转.
更新2:
我已经进行了子类化UITabBarController和UINavigationController覆盖shouldAutorotateToInterfaceOrientation,但它没有帮助.