我正在寻求一点帮助。我想调整大小(缩小)并为警报消息功能设置字体颜色(例如蓝色):
func WrongMessage(theMessage: String) {
let alertController = UIAlertController(title: "Hey", message:"theMessage", preferredStyle: UIAlertControllerStyle.Alert)
alertController.view.tintColor = UIColor.redColor()
alertController.addAction(UIAlertAction(title:theMessage2, style: UIAlertActionStyle.Default,handler: nil))
self.presentViewController(alertController, animated: true, completion: nil)
}
最佳答案
看看here 。 基本上,您必须创建一个自定义 UIAlertView,您可以在其中自定义警报中的任何内容。我不知道如何使用基本的 UIAlertController 类来做到这一点。
关于ios - 调整我的警报消息的大小并设置字体颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35802301/