navigationItem:willBeginRenamingWithSuggestedTitle:selectedRange:
Tells the delegate when the rename process starts.
Declaration
- (NSString *) navigationItem:(UINavigationItem *) navigationItem willBeginRenamingWithSuggestedTitle:(NSString *) title selectedRange:(NSRange *) selectedRange;Parameters
- navigationItem:
The navigation item with the changing title.
- title:
The initial text to appear in the rename text field.
- selectedRange:
The selected range of the initial text in the rename text field.
Return Value
A string that contains the initial text that appears in the rename text field, and a range that determines which part of that text has selection.
Discussion
UIKit calls this method when the rename process begins. Implement this method to customize the initial text and text selection that appears in the rename text field.