I am having a problem! When I use addSubview: and add a view to a UIScrollView, it adds a completely new view.
I want to either:
- toggle between 3 predefined views, or
- remove the last view from the UIScrollView before adding another one.
(All 3 views have some images so I'd imagine that the second option would be more efficient, memory-wise. However, perhaps the first option would be better on battery life? This is a 'subquestion'.)
How does one accomplish this?