k so i have a UITextField just chilling here. now i want it to be that if the user types in a single word or phrase, and pressed the done key, then a UILabel will appear. heres what i have so far but its not working so good:
h file:
m. file:
h file:
Code:
@interface........ {
UITextField *textField;
UILabel *label;
}
@property (nonatomic, retain) IBOutlet UILabel *label;
@property (nonatomic, retain) IBOutlet UITextField *textField;
-(IBAction)textFieldDoneEditing:(id)sender;
@end
m. file:
Code:
@synthesize textField;
@synthesize label;
-(IBAction)textFieldDoneEditing:(id)sender {
[sender resignFirstResponder];
if (textField.text == @"Hello There") {
label.hidden = NO;
}
}
........