forum

Home / DeveloperSection / Forums / How to identify UIActionSheet button in Objective-C?

How to identify UIActionSheet button in Objective-C?

Anonymous User 1814 09-Feb-2016

I have created an UIActionSheet using below code in our iPhone application:

UIActionSheet *actionSheet = [[UIActionSheet alloc]
                               initWithTitle:@"ActionSheetSample"
                               delegate:self
                               cancelButtonTitle:@"Cancel"
                               destructiveButtonTitle:nil
                               otherButtonTitles:@"Button1",@"Button2",@"Button3", nil];
[actionSheet showInView:self.view];

Now, my action sheet created successfully but my problem is how can I identify which button is clicked.!
Please help me!


Updated on 09-Feb-2016
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By