Hi,
I have a textfield to type the username, how will i get back the data to perform some action from the UITextField?
Hi,
I have a textfield to type the username, how will i get back the data to perform some action from the UITextField?
UITextField store data as NSString in text property:
@property(nonatomic, copy) NSString *text;
e.g:
NSLog(@"my text: %@", muTextField.text);
if you want to handle text changes while user edits text use delegate method:
-(BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string