开发者

Delete Destructive Button like in UIActionSheet

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

Delete Destructive Button like in UIActionSheet

I know that this is a destructive button in UIActionSheet. Is there any way t开发者_如何学JAVAo use distructive button as a UIButton ?

Thanks,

Tariq


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.


No there is no way you can change the functionality of destructive Button except that you access the parts protected by apple (using private api).

You should also avoid changing the functionality as it would be against user interface guidelines and moreover it will get the users confused also.

Thanks,

Madhup

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜