I want to create a text message page and want to see the keyboard on page load. This is what I have which doesn't work. Can you find what I'm doing wrong?
In my header file:
@interface taskViewController : ViewController
@property (nonatomic, retain) IBOutlet UITextField *taskDescription;
- (void) viewWillAppear:(BOOL)animated;
@end
In my .m file:
#import "taskViewController.h"
@interface taskViewController ()
@end
@implementation taskViewController
@synthesize taskDescription = _taskDescription;
- (void) viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
[_taskDescription becomeFirstResponder];
}
@end