Balázs Vincze
Balázs Vincze

Reputation: 3832

Change alert view title font in iOS 7

I searched all over the net but couldn't find a solution to get this working under iOS 7. I read that iOS 7 really limited the customization of alert views somehow. (I don't fully understand what is meant under this). Anyways, the question is: How could I change the font of the title text of an alert view under iOS 7 and later?

Cheers!

Upvotes: 0

Views: 412

Answers (2)

Maulik Rajani
Maulik Rajani

Reputation: 639

Here, UIAlertView class you need to use as it is. There is no property for setting font. You need to develop new class works as UIAlertView and then use it to your app. This will help you to choose suitable alertview for your application

Upvotes: 1

meaning-matters
meaning-matters

Reputation: 22946

Either use an existing third-party alert, or walk through the UIAlertView's subviews until you find UILabel objects and try to set their font property. Not sure if the latter will work, but it's a common trick to make style changes to UIKit objects.

Upvotes: 0

Related Questions