How do I determine if the cancel button was pressed on a UIActionSheet?
My UIActionSheet is set up like this:
-(IBAction)fileButtonPressed { UIAction
if (buttonIndex == actionSheet.cancelButtonIndex) { // Handle cancel action }
UIActionSheet also has properties like destructiveButtonIndex and firstOtherButtonIndex to compare against.
destructiveButtonIndex
firstOtherButtonIndex