<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AddressBook",
  "identifier" : "/documentation/AddressBook/ABMutableMultiValue-swift.class/replaceLabel(at:withLabel:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Address Book"
    ],
    "preciseIdentifier" : "c:objc(cs)ABMutableMultiValue(im)replaceLabelAtIndex:withLabel:"
  },
  "title" : "replaceLabel(at:withLabel:)"
}
-->

# replaceLabel(at:withLabel:)

Replaces the label at the given index.

```
func replaceLabel(at index: Int, withLabel label: String!) -> Bool
```

## Parameters

`index`

The index of the label that will be replaced.

`label`

The new label.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if successful; otherwise, <doc://com.apple.documentation/documentation/Swift/false>.

## Discussion

If the label is `nil` or if the index is out of bounds, this method raises an exception.

---

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)