I have a method that adds some subviews (images/buttons) to my ScrollView.
The thing is that from outside of the ScrollView the user can tap a button that will chang
This is kind of an old thread, but a slightly easier method might just be to add a tag to the view's your adding to the UIScrollView, let's say 15. Then
for (UIView * view in _scrollView.subviews) {
if (view.tag == 15) {
[view removeFromSuperview];
}
}
this way you can be sure that only the view's you have added get removed. Just a thought.