Remove the content in a UIScrollView Programmatically?
ios, iphone, objective-c, uiscrollview
Solution
You can loop through your scroll view's subviews like:
for(UIView *subview in scrollView.subviews)
[subview removeFromSuperview];
or you can use `- [NSArray makeObjectsPerformSelector:]` method like:
[scrollView.subviews makeObjectsPerformSelector:@selector(removeFromSuperview)];
Problem
How do you remove the content in a UIScrollView Programmatically? As I have to update the content in it frequently.