setAlternateButtonTitle(_:)
Customizes the title of the alternate button.
Declaration
func setAlternateButtonTitle(_ title: String!)Parameters
- title:
The new title for the alternate button. If this method is not called, or if
titleis set tonil, the button is not shown.
Discussion
The alternate button is typically labelled “Cancel”. The alternate button dismisses the sheet or panel and returns a value of NSCancelButton.