---
title: otherButtonTitle
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsusernotification/otherbuttontitle
---

# otherButtonTitle

Specifies a custom title for the close button in an alert-style notification.

## Declaration

```swift
var otherButtonTitle: String { get set }
```

## Discussion

Discussion This value should be localized as it is presented to the user. The string is truncated to a length appropriate for display and the property is modified to reflect the truncation. An empty string will cause the default localized text to be used. A nil value is invalid.

## See Also

### Displayed Notification Buttons

- [hasActionButton](foundation/nsusernotification/hasactionbutton.md)
- [actionButtonTitle](foundation/nsusernotification/actionbuttontitle.md)
- [hasReplyButton](foundation/nsusernotification/hasreplybutton.md)
