iOS 8 以后修改UIAlertVIew的大小 以及字体颜色, Button的位置
其实 你可以自定义一个你想要的UIAlertVIew, 只要继承一下UIAlertVIew 就可以了。
其实 你可以自定义一个你想要的UIAlertVIew, 只要继承一下UIAlertVIew 就可以了。
最好的办法是自己自定义一个alertView,可以根据自己的需要自己定义内容、样式,弹出的位置等。不是很困难,楼主可以去尝试。
同意楼上的说法 自定义一个alertView 根据自己的需求 自定义内容啥的
楼主解决没,我也遇到了这个问题。。。
楼主解决没,我也遇到了这个问题。。。
KVC + 富文本
NSMutableAttributedString *titleAtt = [[NSMutableAttributedString alloc] initWithString:title];
[titleAtt addAttribute:NSFontAttributeName value:[UIFont systemFontOfSize:16] range:NSMakeRange(0, title.length)];//字体
[titleAtt addAttribute:NSForegroundColorAttributeName value:[UIColor orangeColor] range:NSMakeRange(0, title.length)];//颜色
[alertController setValue:titleAtt forKey:@"attributedTitle"];