任何人都有代码来做到这一点:

(来源:booleanmagic.com)
或者更好的是,使用UIAlertView对象的3x2网格按钮?
我不关心文本字段,它是我想要的网格中的按钮(最好是图像而不是文本).
我正在寻找一种简单的方法来使用NSAttributedString一个非常简单的消息框类似于:
NSString *new_item = [NSString stringWithFormat:@"<span style=\"font-family: Helvetica Neue; font-size: 12.0\">%@</span>", @"MOTD HTML String downloaded from website"];
NSAttributedString * attrStr = [[NSAttributedString alloc] initWithData:[new_item dataUsingEncoding:NSUnicodeStringEncoding] options:@{ NSDocumentTypeDocumentAttribute: NSHTMLTextDocumentType } documentAttributes:nil error:nil];
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"MOTD"
message:attrStr
delegate:nil
cancelButtonTitle:@"OK"
otherButtonTitles:nil];
[alert show];
Run Code Online (Sandbox Code Playgroud)
我上面的代码采用从服务器下载的HTML格式的字符串,确保文本大小适合屏幕,然后尝试发送NSAttributedString到UIAlertView.但UIAlertView不喜欢这个.这个问题最简单的方法是什么?(非HTML格式的MOTD不是一个选项)