Monday, 15 September 2014

swift - Is it possible to customize the font and appearance of a UIAlertController in the new XCode w/ iOS8? -



swift - Is it possible to customize the font and appearance of a UIAlertController in the new XCode w/ iOS8? -

i'm wondering if it's possible customize in app alerts uialertcontroller. haven't seen explicitly says can. know of way can add together custom appearance, particularly fonts on these alerts?

you can appearancewhencontainedin. set background color, here's example:

[[uiview appearancewhencontainedin:uialertcontroller.class, nil] setbackgroundcolor:[uicolor yellowcolor]];

or tint color:

[[uiview appearancewhencontainedin:uialertcontroller.class, nil] settintcolor:[uicolor whitecolor]];

swift ios8 uialertcontroller

No comments:

Post a Comment