My approach was to create a ‘Done’ button on the UINavigationBar when the user began editing.
First step: Declare two methods in DetailViewController.h
Second step: Add corresponding implementation to DetailViewController.m
UIBarButtonItem *doneButton = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonItemStylePlain target:self action:@selector(doneEditingValueField)];
[[self navigationItem] setRightBarButtonItem:doneButton];
[[self navigationItem] setRightBarButtonItem:nil];
The final step was to make connections in the XIB file.
 Open DetailViewController.xib and control+click on ‘File Owner.’ A popup will appear.
 Drag from ‘createDoneButton’ onto the text field. Another popup will appear.
 Click ‘editing did begin.’
I hope that helps!