Keyboard won't resign


#1

DetailViewController.h conforms to UITextFieldDelegate protocol
Implemented textFieldShouldReturn: and keyboard stays. Why?

EDiT: After manually connecting the text fields’ delegates to the file owner in the xib file, it functions normally. Did I miss this tidbit earlier in the chapter?


#2

[quote=“Sampson”]
EDiT: After manually connecting the text fields’ delegates to the file owner in the xib file, it functions normally. Did I miss this tidbit earlier in the chapter?[/quote]

Yes, the book tells you to connect the text fields’ delegate to the DetailViewController on page 229.