Adding Three20 TTPhotoViewController on an empty UIWindow
Rotation were working like a charm.
But when I moved the TTPhotoViewController to be created from UINavigationController
inside a UITabBarController
it does not rotate at all.
I made sure I return YES for every shouldAutorotateToInterfaceOrientation
function.
Does Three20 Photo Gallery work in side UITabBarController with rotation?
[[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"]];
TTScrollView
but the navigation bar is not rotating.
Update 2:
I have subclass-ed both UITabBarController
and UINavigationController
to override shouldAutorotateToInterfaceOrientation
, but it did not help.
I have weirdly solved my issue by removing the TabBarController
from the Window
object and when going back I add the TabBarController
to the window
again.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With