What's the correct way to represent a linear process in CocoaTouch (UIKit)?
Posted
by UloPe
on Stack Overflow
See other posts from Stack Overflow
or by UloPe
Published on 2010-06-02T20:34:16Z
Indexed on
2010/06/02
20:44 UTC
Read the original article
Hit count: 200
I need to represent a linear process (think wizard) in an iPad app.
In principle I could use a UINavigationController and just keep pushing new controllers for each step of the process. But this seems rather inefficient since the process I'm modeling has no notion of navigating backwards so all previous views would pointlessly stay around and use up resources.
At the moment I keep adding and removing a subview to one "master" viewcontroller and basically swapping out the contents. This works but feels rather clunky and I hope there is some nicer way to achieve this.
Additionally there needs to be an animated transition between the views. (I have this working at the moment via beginAnimations / commitAnimations)
© Stack Overflow or respective owner