<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UINavigationItemRenameDelegate-96g5t/navigationItem:willBeginRenamingWithSuggestedTitle:selectedRange:",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UINavigationItemRenameDelegate(im)navigationItem:willBeginRenamingWithSuggestedTitle:selectedRange:"
  },
  "title" : "navigationItem:willBeginRenamingWithSuggestedTitle:selectedRange:"
}
-->

# navigationItem:willBeginRenamingWithSuggestedTitle:selectedRange:

Tells the delegate when the rename process starts.

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)