iphone - TTNavigator keeps going to the wildcard page. Any idea what happens? -


my iphone ttnavigator keeps loading wildcard page though url (i.e. 'tt://root') valid

@synthesize navigator;  //  - (bool)application:(uiapplication *)application didfinishlaunchingwithoptions:(nsdictionary *)launchoptions {     navigator = [ttnavigator navigator];     [navigator setwindow:window];      // routing table     tturlmap *map = navigator.urlmap;     [map from:@"*" toviewcontroller:[ttwebcontroller class]];     [map from:@"tt://root" toviewcontroller:[maintabbarcontroller class]];     [map from:@"tt://newsfeed" toviewcontroller:[newsfeedviewcontroller class]];      // first stop     if (![navigator restoreviewcontrollers]) {         [navigator openurlaction:[tturlaction actionwithurlpath:@"tt://root"]];     } } 

when comment out wildcard section redirects webview, load "tt://root" when app starts.

any idea i'm missing out?

cheers, mickey

the restoreviewcontrollers message restores cached view controllers. may wildcard mapping last view navigated , therefore on top of cached navigation stack.

i first try deleting app simulator/device, cleaning project, rebuilding, , deploying onto simulator/device.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -