I am generating UITextfield
s dynamically on a scrollview as the user enters number in the UITextfield
(lets say it "A") and hits a button. But what i need to do is when user reenters number in UITextfield
s the previously displayed UITextfield
s must be gone and new UITextfield
s` must be generated.
for (UIView *field in self.scrollView.subviews)
{
if([field isKindOfClass:[UITextField class]])
[field removeFromSuperview];
}
eg- if first i generated 7 UITextfield
s and afterwards i edit the "A" again and put 3 as value only 3 UITextfield
s must be visible.
but in my code the 3 UITextfield
s are overwritten on 7 but previous also displayed.