I'm having some trouble dynamically removing UITextFields from my scrollview.
I can add 2 UITextFields Dynamically.
To remove UITextFields i am using the bellow given code
[dynamicUITextFields removeFromSuperview];
I totally agree your solution. But it will remove all the UITextField from the current view
Step 1 Add the new added UITextField to Array
Step 2 Loop the array and remove the UITextField from SuperView
for(UITextField *textField in containerArray){
[textField removeFromSuperview];
}