---
title: "navigationItem:shouldEndRenamingWithTitle:"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uinavigationitemrenamedelegate-96g5t/navigationitem:shouldendrenamingwithtitle:"
---

# navigationItem:shouldEndRenamingWithTitle:

Asks the delegate whether to continue or abandon the rename process.

## Declaration

```occ
- (BOOL) navigationItem:(UINavigationItem *) navigationItem shouldEndRenamingWithTitle:(NSString *) title;
```

## Parameters

- `navigationItem`: The navigation item attempting to continue the rename process.
- `title`: The new title of the navigation item.

## Return Value

Return Value true to continue the rename process; false to cancel the rename process.

## Discussion

Discussion Implement this method to return false to prevent renaming. important: UIKit might not call this method in certain situations, like when the system pushes a new navigation item onto the navigation bar. In these situations, UIKit calls navigationItem:didEndRenamingWithTitle: instead. Therefore, make sure to implement navigationItem:didEndRenamingWithTitle: to handle the cases when navigationItem:shouldEndRenamingWithTitle: returns false.

## See Also

### Determining rename support

- [navigationItemShouldBeginRenaming:](uikit/uinavigationitemrenamedelegate-96g5t/navigationitemshouldbeginrenaming:.md)
