开发者

TTNavigator Problem, 2 Navigation Bars during Relaunch

TTNavigator Problem, 2 Navigation Bars during Relaunch

I'm having weird issue during application relaunch, I get two Navigation Bars when I try to restor开发者_Go百科e the view controllers of TTNavigator


now that iOS 4 has background processing, consider removing the controller persistence from your app delegate. if you app goes into the background and reopened, it will come back to the old state anyway.

navigator.persistenceMode = TTNavigatorPersistenceModeAll;
if (![navigator restoreViewControllers]) {
  [navigator openURLAction:[TTURLAction actionWithURLPath:@"tt://catalog"]];
}

to

 navigator.persistenceMode = TTNavigatorPersistenceModeNone;
[navigator openURLAction:[TTURLAction actionWithURLPath:@"tt://catalog"]];

The navigator persistence mode was intended for devices pre iOS 4. I found that disabling it completely is much easier.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜