Home > DeveloperSection > Forums > How to change button sequence in action sheet in iOS
Ankita Pandey
Ankita Pandey

Total Post:183

Posted on    November-26-2015 11:53 PM

 iPhone iPhone  Ios  Objective C 

 1 Reply(s)
 273  View(s)
Rate this:
I have created 5 buttons in action sheet,
for example:
1. Delete (destructive button)
2. Audios
3. Vedios
4. Files
5. Cancel
now, my question is, can I move Delete button position on the 4 index.
If is this possible then please tell me how to do it.!

Tarun Kumar

Total Post:210

Posted on    November-27-2015 10:28 PM

Yes, you can move the position index using destructiveButtonIndex to set the 3rd button as destructive button:
for example:

actionSheet.destructiveButtonIndex = 3;

Don't want to miss updates? Please click the below button!

Follow MindStick