about 禁用Three20 的persistence mode

sunlite 2012-07-23 06:39:51
我想用如下代码禁用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
...全文
54 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

29,028

社区成员

发帖
与我相关
我的任务
社区描述
主要讨论与iOS相关的软件和技术
社区管理员
  • iOS
  • 大熊猫侯佩
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧