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.
精彩评论