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.