about 禁用Three20 的persistence mode
我想用如下代码禁用Three20 的persistence mode:' - (void)applicationDidFinishLaunching:(UIApplication*)application { TTNavigator* navigator = [TTNavigator navigator]; navigator.persistenceMode = TTNavigatorPersistenceModeNone; navigator.window = [[[UIWindow alloc] initWithFrame:TTScreenBounds()] autorelease];
TTURLMap* map = navigator.URLMap; [map from:@"tt://tabBar" toSharedViewController:[TabBarController class]]; } '
可是当从其他 Tab menu 切换到当前的Tab menu 时,它总是先回到上次的最后位置,而不能直接回到当前 Tab menu 的根位置。
This is a TTNavigator embedded into TTTabbar Controller by combining TTCatalog sample and TTNavigatorDemo together. When I click the first Tabbar item ( when it displays in other Tabs ), it does not return to the first page of first Tabbar item directly as I expected. In stead, it just returns the last persistent pages first, I have to click the first Tabbar item again to navigate back to the first page of its first Tabbar item.
Please help! thanks