---
title: "replaceLabel(at:withLabel:)"
framework: addressbook
role: symbol
role_heading: Instance Method
path: "addressbook/abmutablemultivalue/replacelabel(at:withlabel:)"
---

# replaceLabel(at:withLabel:)

Replaces the label at the given index.

## Declaration

```swift
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

Return Value true if successful; otherwise, false.

## Discussion

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

## See Also

### Replacing values and labels

- [replace(at:withValue:)](addressbook/abmutablemultivalue/replace(at:withvalue:).md)
