Thanks so much,
Joe
Anonymous
So I’m guessing that you mean to push a text view containing a lot of text (or similar) each time a row is selected? In that case you could indeed re-use the text view, although I’m not certain of the relative merits of doing so. You would save the work of creating the view, but you’d not alleviate any of the burden of text rendering. If you find the application slow then look at caching the view itself, but otherwise assume it’s safe to create a new view each time you need to push one (Avoid Premature Optimisation).
In general I’d suggest to simply create a new text view (or its container via a controller/nib pair, etc) each time you want to push a new text view. The text itself would ideally be stored on disk somewhere and loaded on demand by the text view’s controller in -viewDidLoad, and could be released in -viewDidUnload.
Hopefully this answers your question— send some more details if I’ve missed any nuances about which you were concerned.