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

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -

django - CSRF verification failed. Request aborted. CSRF cookie not set -