objective c - Xcode Totally dismiss ViewController -
i have simple question: how can "dismiss" viewcontroller completely? after want viewcontroller load if had been first time load viewcontroller. how this? tried setneedsdisplay() thats not want.
thanks jannes
i think mean remove view (not view controller) way, when enter main view, run viewdidload again. have done similar in view controller within navigation controller. when click 'back' button, wanted remove view , force load again next time enter it. able code:
nsarray *viewstoremove = [self.view subviews]; (uiview *v in viewstoremove) { nslog(@"removing view %@", v); [v removefromsuperview]; }
Comments
Post a Comment