HOW TO CHANGE BUTTON SEQUENCE IN ACTION SHEET IN IOS

Ankita Pandey

Total Post:183

Points:1285
Posted by  Ankita Pandey
 529  View(s)
Ratings:
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.!
  1. Tarun Kumar

    Post:214

    Points:1642
    Re: How to change button sequence in action sheet in iOS

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

    actionSheet.destructiveButtonIndex = 3;

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!