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?

没有正确的解决方案

其他提示

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top