Currently you are setting the actionSheet
's delegate
to nil
because of which your delegate method is not getting called.
In your ViewController.h file, write like this:
@interface ViewController : UIViewController <UIActionSheetDelegate>
You have to set the delegate of your actionSheet
in order to get the delegate method called.
UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:@"You Shook?" delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:@"End Game" otherButtonTitles:@"Settings", nil];