Hey guys,
I've been searching the web for a really long time, and I can't get this to work. On my text field I have, when I click on it and then press done or return it won't go away. I've done all the steps for every single tutorial but I still can't get it to work. I'm on firmware 3.1.2, but anyway here is the code in my ViewController.m:
- (void)viewDidLoad {
[super viewDidLoad];
blah.delegate = self;
blah.returnKeyType = UIReturnKeyDone;
}
- (BOOL)blahShouldReturn:(UITextField *)blah{
[blah resignFirstResponder];
return YES;
}
viewcontroller.h:
@interface BlahViewController : UIViewController <UITextFieldDelegate> {
IBOutlet UITextField *blah;
}
These are just cut outs from the files. Anyway can anyone help me? I can't get rid of the keyboard when I click on it...
Thanks,
Kevin