---
title: "navigationItem:willBeginRenamingWithSuggestedTitle:selectedRange:"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uinavigationitemrenamedelegate-96g5t/navigationitem:willbeginrenamingwithsuggestedtitle:selectedrange:"
---

# navigationItem:willBeginRenamingWithSuggestedTitle:selectedRange:

Tells the delegate when the rename process starts.

## Declaration

```occ
- (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

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

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.

## See Also

### Handling the rename process

- [navigationItem:didEndRenamingWithTitle:](uikit/uinavigationitemrenamedelegate-96g5t/navigationitem:didendrenamingwithtitle:.md)
