Initializes the action sheet using the specified starting parameters.
- iOS 2.0–8.3Deprecated
A string to display in the title area of the action sheet. Pass
nilif you do not want to display any text in the title area.
The receiver’s delegate object. Although this parameter may be
nil, the delegate is used to respond to taps in the action sheet and should usually be provided.
The title of the cancel button. This button is added to the action sheet automatically and assigned an appropriate index, which is available from the
cancelproperty. This button is displayed in black to indicate that it represents the cancel action. Specify
nilif you do not want a cancel button or are presenting the action sheet on an iPad.
The title of the destructive button. This button is added to the action sheet automatically and assigned an appropriate index, which is available from the
destructiveproperty. This button is displayed in red to indicate that it represents a destructive behavior. Specify
nilif you do not want a destructive button.
The titles of any additional buttons you want to add. This parameter consists of a
nil-terminated, comma-separated list of strings. For example, to specify two additional buttons, you could specify the value
@"Button 1", @"Button 2", nil.
A newly initialized action sheet.
The action sheet automatically sets the appearance of the destructive and cancel buttons. If the action sheet contains only one button, it does not apply the custom colors associated with the destructive and cancel buttons.