UIAlertView Change BackGround Color

痞子三分冷 提交于 2020-01-13 18:03:28

问题


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.


回答1:


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!




回答2:


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

Hope this helps.



来源:https://stackoverflow.com/questions/16713307/uialertview-change-background-color

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!