---
title: "How to remove RedDestructive Button from UIActionSheet in iOS"  
description: "How to remove RedDestructive Button from UIActionSheet in iOS"  
author: "Anonymous User"  
published: 2015-11-26  
updated: 2015-11-26  
canonical: https://www.mindstick.com/forum/33641/how-to-remove-reddestructive-button-from-uiactionsheet-in-ios  
category: "iphone"  
tags: ["iphone", "ios", "objective c"]  
reading_time: 1 minute  

---

# How to remove RedDestructive Button from UIActionSheet in iOS

I have created an [application](https://www.mindstick.com/articles/12824/calculator-application-in-android) using UIActionSheet that pops up on the screen.

But I don't need to have destructive [button](https://www.mindstick.com/articles/63/how-to-add-button-in-datagridview-in-csharp-dot-net) on our [action](https://www.mindstick.com/forum/155752/what-is-action-result-with-its-types) sheet. If I will try to [remove](https://yourviews.mindstick.com/story/4554/8-harmful-weeds-to-remove-from-garden) the destructive button from the [code](https://yourviews.mindstick.com/view/85458/alan-turing-the-mastermind-behind-cracking-the-enigma-code-during-world-war-ii) then I get an [error](https://yourviews.mindstick.com/view/88527/fixing-quickbooks-error-4120-reinstalling-vs-repairing): No visible [interface](https://www.mindstick.com/articles/12101/interfaces-in-java-extending-interfaces) for UIActionSheet.

\

So, how can I remove the [red](https://yourviews.mindstick.com/view/81343/lonar-lake-turning-red-again) destructive button from the action sheet.!\

## Replies

### Reply by Tarun Kumar

Yes, you can remove destructive button from action sheet: in the parameter of action sheet method **'initWithTitle:'** pass **nil** in the **destructiveButtonTitle** parameter.For example:

```
UIActionSheet *actionSheet = [[UIActionSheet alloc]initWithTitle:actionSheetTitledelegate:selfcancelButtonTitle:cancelTitledestructiveButtonTitle:nilotherButtonTitles:images, vedios, files, nil];
```


---

Original Source: https://www.mindstick.com/forum/33641/how-to-remove-reddestructive-button-from-uiactionsheet-in-ios

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
