Hi again everybody. I'm having a problem implementing the TTNavigator + TTWebController to capture links in styled labels and open them in the TTWebController. In my current UIViewController (not a navigation controller), in the viewDidLoad i added (according to TTCatalog sample):
TTNavigator* navigator = [TTNavigator navigator];
navigator.supportsShakeToReload = YES;
navigator.persistenceMode = TTNavigatorPersistenceModeAll;
TTURLMap* map = navigator.URLMap;
[map from:@"*" toViewController:[TTWebController class]];
and i've also added in the same UIViewController .m file:
- (BOOL)application:(UIApplication*)application handleOpenURL:(NSURL*)URL {
[[TTNavigator navigator] openURL: URL.absoluteString animated: YES];
return YES;
}
Now, if i tap on links in the styled labels, they actually open perfectly in the Three20 WebController. I've also customised aspect, colors, title and buttons. The problem is that the transition between my current UIViewController and the web page is without animation. I'd really need it to slide from bottom to top (as it's the default animation of the whole application). I've played with the various settings in the TTNavigator.m, tried lots of things but still can't figure out how to perform the animation. I'm also having problems dismissing the browser view. I've added a "cancel/done" button, but dismissal doesn't work. Any help would be appreciated.
Sorry for my English.
Thanks in advance, Luca