Question

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?

No correct solution

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top