iOS7 - Italic text in UIAlertView

1k views Asked by At

I want to display text in italic in UIAlertView. I would like to know how to do so.

I am currently thinking as follows:- There is no explicit label in an alert view. So we cannot set the font attribute. We just have an NSString in the message parameter of UIAlertView

Correct me if I am wrong.

So is there any solution or alternative?

1

There are 1 answers

2
Enrico Susatyo On

There is no way to modify the text attribute in UIAlertView in iOS 7. It was possible in iOS 6.

One solution is to recreate the UIAlertView. This is relatively easy, explained in depth here. Or if you browse around GitHub there might be an implementation of it already.

Edit: Here is an implementation in GitHub.