简体   繁体   English

uialertaction取消按钮中的背景色

[英]Background color in uialertaction cancel button

I have a MenuActionSheet . 我有一个MenuActionSheet I need to to change the font size, style of the options and also want to change the background color of the 'Cancel' button. 我需要更改字体大小,选项样式,还想更改“取消”按钮的背景颜色。

According to the attached screenshot. 根据所附的截图。

在此处输入图片说明

This level of customisation can only be achieved by overwriting the drawing methods of your action sheet (it inherits from UIView). 只能通过覆盖操作表的绘制方法(从UIView继承)来实现这种级别的自定义。

Note: UIActionSheet is deprecated since iOS 8. For more information see: https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIActionSheet_Class/ 注意:自iOS 8起不推荐使用UIActionSheet。有关更多信息,请参见: https : //developer.apple.com/library/ios/documentation/UIKit/Reference/UIActionSheet_Class/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM