I've got a little problem with uitextfield. I use two of them in a view and when I write something to the second field the first string gets changed too. Here is my code
-(BOOL)textFieldShouldReturn:(UITextField *)textField{
textString = textField.text;
NSLog(@"the string1 %@",textString);
[textField resignFirstResponder];
textString2 = textField2.text;
NSLog(@"the string2 %@",textString2);
[textField2 resignFirstResponder];
return YES;}
so I need some help.