---
title: "How to change button sequence in action sheet in iOS"  
description: "How to change button sequence in action sheet in iOS"  
author: "Anonymous User"  
published: 2015-11-26  
updated: 2015-11-27  
canonical: https://www.mindstick.com/forum/33647/how-to-change-button-sequence-in-action-sheet-in-ios  
category: "iphone"  
tags: ["iphone", "ios", "objective c"]  
reading_time: 1 minute  

---

# How to change button sequence in action sheet in iOS

I have created 5 buttons in [action](https://www.mindstick.com/forum/155752/what-is-action-result-with-its-types) sheet,\
for example:\
1. [Delete](https://www.mindstick.com/forum/33620/how-to-delete-record-from-list-in-mvc-using-ajax) (destructive [button](https://www.mindstick.com/articles/63/how-to-add-button-in-datagridview-in-csharp-dot-net))\
2. Audios\
3. Vedios\
4. [Files](https://www.mindstick.com/articles/23302/the-importance-and-advantage-of-keeping-your-important-files-on-the-cloud)\
5. [Cancel](https://answers.mindstick.com/qa/94501/how-can-i-cancel-my-singapore-flight-ticket)\
[now](https://yourviews.mindstick.com/view/81402/it-s-liberals-vs-progressives-in-us-politics-now), my [question](https://www.mindstick.com/blog/23175/how-to-solve-neet-question-paper-in-less-time) is, can I move Delete button position on the 4 index.\
If is this possible then [please tell me](https://www.mindstick.com/forum/33900/please-tell-me-what-are-the-technique-to-content-optimization) how to do it.!

## Replies

### Reply by Tarun Kumar

Yes, you can move the position index using **destructiveButtonIndex** to set the 3rd button as destructive button:\
for example:

```
actionSheet.destructiveButtonIndex = 3;
```


---

Original Source: https://www.mindstick.com/forum/33647/how-to-change-button-sequence-in-action-sheet-in-ios

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
