The title of the action button or slider.
- iOS 4.0–10.0Deprecated
- Mac Catalyst 13.0–13.0Deprecated
- watchOS 2.0–3.0Deprecated
Assign a string or, preferably, a localized-string key (using
NSLocalized) as the value. The alert action is the title of the right button of the alert or the value of the unlock slider, where the value replaces “unlock” in “slide to unlock”. If you specify
alert is non-
nil, “View” (localized to the preferred language) is used as the default value.