Total noob here, just getting used to the iPhone SDK. I've programmed on the Palm, on Windows CE, and just finished a tome on Objective C, and am now going through "Beginning iPhone Development" by Mark & LaMarche. I happily made my "hello world" program, made a program that displays text on the bottom of the screen when either of two buttons are pressed, and am now stuck on text fields. A la the instructions in the book, I added this code to the view controller.h file:
@interface Control_FunViewController : UIViewController {
IBOutlet UITextField *nameField;
IBOutlet UITextField *numberField;
}
@property ( nonatomic, retain ) UITextField *nameField;
@property ( nonatomic, retain ) UITextField *numberField;
@end
and to the implementation file:
@implementation Control_FunViewController
@synthesize nameField;
@synthesize numberField;
...
And then added 2 text boxes to the view in the interface builder. I connected each text box by control dragging from File's Owner in the interface builder box to the appropriate text view boxes in the view, and selected the appropriate UITextField object. The program compiles and runs just fine, but when I click in the text fields, nothing happens. The book tells me the keyboard should automagically pop up, but it does not.
Any idea what I'm missing? Is there an action I need to invoke? A method I need to include?
Many, many TIA in advance, I've been banging my head against the wall for a couple of hours now. My application set is fairly text field dependent.
Craig