iOS 5黑色透明UIAlertView [英] iOS 5 black transparent UIAlertView

查看:132
本文介绍了iOS 5黑色透明UIAlertView的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道这个问题已经之前询问过然而,对于iOS的早期版本,据我记得,今年WWDC的人们强调我们最终可以很容易地定制所有内容,例如开关的色调(UISwitch onTintColor等)。

I'm aware that this question has been asked before for earlier versions of iOS, however, as far as I remember, people at the WWDC this year emphasised that we can finally customise everything very easily, e.g. the tint colours of switches (UISwitch onTintColor etc.).

我查看了AlertView,但唯一的选项是密码输入/文本输入。也许我在这里遗漏了一些明显的东西,但是仍然无法轻易改变iOS 5中UIAlertView的背景色调颜色吗? iOS中的所有其他UIAlertViews都是黑色/透明的,所以应该有一个简单的方法吗?

I had a look at the AlertView but the only options are password input / text input. Perhaps I'm missing something obvious here, but is it still not possible to change the background tint colour of an UIAlertView in iOS 5 easily? All the other UIAlertViews in iOS are blackish/transparent, so there should be an easy way or not?

我检查了 docs 但找不到任何针对iOS 5的内容。

I checked the docs but couldn't find anything specific for iOS 5.

推荐答案

我不知道在iOS5中是否可以轻松更改背景颜色,但传统上更改 UIAlertView 背景与设置新图像有关。您提供的链接& 此链接提供帮助。

I have no idea if the background color can be changed that easily in iOS5 but traditionally speaking changing UIAlertView background is to do with setting a new image. The link you provided & this link provide help.

这篇关于iOS 5黑色透明UIAlertView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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