Adds a button to the receiver with the given title.
- iOS 2.0–9.0Deprecated
- Mac Catalyst 13.0–13.0Deprecated
The title of the new button.
The index of the new button. Button indices start at
0 and increase in the order they are added.
Adding too many buttons can cause the alert view to scroll. For guidelines on the best ways to use an alert in an app, see Temporary Views.