How do I remove all objects from a UIScrollView (completely clear the scroll view, no matter what is allocated inside):
I tried this but it does not work:
for (UIView *subview in scroll1.subviews) {
[subview removeFromSuperview];
}
How do I remove all objects from a UIScrollView (completely clear the scroll view, no matter what is allocated inside):
I tried this but it does not work:
for (UIView *subview in scroll1.subviews) {
[subview removeFromSuperview];
}
Have you tried the code posted in the answer to this post ?
Remove all the subviews from a UIScrollView?
Hope this helps