I Created five UITextField using for loop i want to clear the textfield values when i Click the Clear button but only clear the last textfield values.i want to clear all text fiel values how can i solve this any one Help me Thanks
I Created five UITextField using for loop i want to clear the textfield values
Share
In your clear method write like:
Here each sub view is taken from the self.view and check if it is a
UITextFieldor not. If it is aUITextFieldthen we set@""to it.