开发者

Three20 URLNavigation: Disabling view persistence for some controllers

开发者 https://www.devze.com 2023-01-02 03:57 出处:网络
I generally like the View Persistor in the Three20 URLNavigation, however, I would like to exclude a f开发者_JS百科ew Controllers so they can\'t be the the first controller to show when the app loads.

I generally like the View Persistor in the Three20 URLNavigation, however, I would like to exclude a f开发者_JS百科ew Controllers so they can't be the the first controller to show when the app loads. how can i do that?


In the viewController that should not be persisted, just overwrite persistView: and return NO. That should do the trick.

- (BOOL)persistView:(NSMutableDictionary*)state {
  return NO;
}

see TTAlertViewController, TTActionSheetController

0

精彩评论

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