我知道我的UIAlertController消息在需要的时候会显示多行,但今天我偶然意识到所有的消息都变成了单行,并在末尾有省略号。因为我从API显示这些消息,所以我不能使用"\n“。代码非常简单;
let alert = UIAlertController(title: "Title", message: "Long message that must be shown as multiline
我熟悉addTextFieldWithConfigurationHandler在UIALertController of .Alert样式中添加文本字段。但是我试图在警报中建立一个反馈表单,它需要多行文本条目。我找不到相应的addTextViewWithConfigurationHandler
有什么解决办法吗?
我尝试发送一条消息(MFMessageComposeViewController)。我想展示一个依赖于委托方法的成功(或失败)的alertView。取消消息时会显示alertView,但发送消息时会出现以下错误:
Attempting to load the view of a view controller while it is deallocatingis not allowed and may result in undefined behavior (<UIAlertController: 0x153b3c