I know that UIAlertView
conforms to UIAppearance
and UIAppearanceContainer
.
But how do I use UIAppearance
to customize/style UIAlertView
? I am not able to find it over the net.
I know that UIAlertView
conforms to UIAppearance
and UIAppearanceContainer
.
But how do I use UIAppearance
to customize/style UIAlertView
? I am not able to find it over the net.
You can't use
UIAppearance
to customiseUIAlertView
.UIAlertView
only shows as havingUIAppearance
becauseUIView
conforms toUIAppearance
andUIAlertView
is a subclass ofUIView
.It doesn't actually implement it though.
If you want to customize UIAlertView, i made subclass of UIAlertView, you can find it on github WCAlertView which support similiar proxy to UIAppearance. You can use it to set default appearce for all WCAlertView:
If you want to use
UIAlertView
functionality, modally view, etc... you can subclass it.Here an example: http://www.albertopasca.it/whiletrue/2012/07/objective-c-modal-view-navigation-tabbar-controller-projects/
hope this helps.