I have 4 buttons in UIActionsheet from Top to Bottom Sequence is as below
1. Remove existing photo – Destructive button title
2. take picture – other button title
3. choose from library – other button title
4. Cancel – cancel button title
Now what my question is i found my 1st button “Remove existing photo” in red color obviously and i want my 1st button at 3rd place with red color and other buttons as 1st button and 2nd button but don’t know how i can get it.
You can use
destructiveButtonIndexto set the 3rd button as destructive button.like this
actioinSheet.destructiveButtonIndex = 3;