I pretty much copy and pasted your event handler into my ViewControllerSubClass, I then added a text box in Interface Builder and bound it to a UITextField outlet property. I set the myTextField.delegate = self in the ViewController.initWIthNibName method. Everything seems to get executed and go without a hitch but it still doesn't close the keyboard when I click done...
Also I get a warning at the line where I assign the delegate saying "warning class 'MyViewController' does not implement the 'UITextFieldDelegate' protocol"... any idea how to make this warning go away?
|