UIAlertView中更改背景颜色 [英] UIAlertView Change BackGround Color

查看:198
本文介绍了UIAlertView中更改背景颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在UIAlertView中BG颜色变为绿色,用它setBGcolor给我下面的输出,其中有一个深色的SetBGColor指定,电气特性的方法来消除的背景颜色或别的东西。

Hi I am trying to change the UiAlertview BG color to green, using setBGcolor it give me following output, Which had a dark color Specified in SetBGColor, anyother way to remove the background color or something else.

推荐答案

没有,你不能自定义 UIAlertView中,也可以可以使用在这种情况下,外观属性。
所以,如果你必须这样做,有什么可以做的是使用 A 观点,给出了一个 UIAlertView中般的显示。您可以创建按钮自定义视图,并用它在整个应用程序。

No, you can't customize a UIAlertView, nor can you can use appearance property in this case. So if you have to do it, what you can do is use a view that gives a UIAlertView-like display. You can create a custom view with buttons and use it throughout the app.

或者你可以检查链接。它可以帮助你!

Or you can check this link. It might help you!

这篇关于UIAlertView中更改背景颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆