ios - How to unload UIViewcontroller from memory? -


my app structure (targeting ios 6.1 w/arc):

intro view controller ->presents-> main menu view controller ->presents-> stuff view controller

the intro view controller shown once, on app launch. user able jump main menu view controller (currently achieved using dismissviewcontrolleranimated:).

but how rid of intro view controller still lingering in memory?

you should use different structure this. make mainmenuviewcontroller root view controller of window, , present introviewcontroller modally mainmenuviewcontroller's viewdidappear method no animation. make introviewcontroller first thing user sees. dismiss when you're done it, , deallocated.


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -