(I have had the same problem, I wanted to add UIImageView
's to my mainView and update them like that) I just used an NSMutable array of the ViewControllers you want to display in the view, then add or subtract from that as needed, and every time you add or subtract from that array, then call a metod from inside your mainView that goes through the scrollView and removes every view from the scrollView, and then adds the appropriate viewController to the scrollView. Hope this helps.
Jaba
2010-03-05 03:43:14