RemindMeViewController.h
RemindMeViewController.m
I then open .xib and set delegate of ViewController to the UITextField, and set the Outlet for the UITextField to reminderText. When I click Done on the keyboard, nothing happens. What's going on here?
Code:
@interface RemindMeViewController : UIViewController {
UITextField *reminderText;
}
@property (nonatomic,retain) IBOutlet UITextField *reminderText;
Code:
@implementation RemindMeViewController
@synthesize reminderText;
- (BOOL)textFieldShouldReturn:(UITextField *)textField {
[reminderText resignFirstResponder];
return YES;
}