UIAlertView Change BackGround Color

2019-05-10 21:10发布

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.

SetBGcolor OUTPUT

2条回答
劳资没心,怎么记你
2楼-- · 2019-05-10 21:40

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!

查看更多
爱情/是我丢掉的垃圾
3楼-- · 2019-05-10 21:52

you can change the image or background of the UIAlertView but add some subview to it. Here is link which can be useful for you . I am also posting some images for you from given link. But these files are not working in iOS 7

First imageenter image description here

Hope this helps.

查看更多
登录 后发表回答