Delete Destructive Button like in UIActionSheet

I need to create a button programmatically just like in the image

I know that this is a destructive button in UIActionSheet. Is there any way to use distructive button as a UIButton ?

Thanks,

Tariq

Answers


Unfortunately there is no way to set a destructive button as a UIButton,unless you create a custom button with a red gradient background image like THIS You can create a red button like the methode specified above or like THIS


There are a bunch of projects like this around the net

https://github.com/0xced/UIKit-Artwork-Extractor

That use the private api to generate image files you can use with a standard UIButton. Nice little route around the problem.


Need Your Help

What are the arguments to put in eclipse subversion merge program arguments to make subversive work with TortoiseMerge?

eclipse svn tortoisesvn subversive tortoisemerge

What are the arguments to put in eclipse subversion merge program arguments to make subversive work with TortoiseMerge?

Database abstraction options for hosts that disallow installation of PEAR modules

php pear mdb2 database-abstraction

A prospective host disallows PEAR modules except for VPS/dedicated accounts. Can't afford spending $2000-3000/yr on VPS on a hobby site, so that option is out.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.