因为TWTRComposer不支持添加视频,所以我必须使用他们的RESTAPI来上传视频,并创建一个自定义界面来将消息添加到Tweet。
我想在UIAlertView中这样做,但似乎不能在textField中添加多行文本:

对于如何定制多行文本的UIAlertView,有什么建议吗?我希望它看起来尽可能靠近TWTRComposer窗口。

发布于 2018-10-29 21:32:51
具有多行文本或格式化文本,例如。带有粗体文本的消息,则需要使用属性字符串。请看下面的
让alertController = Utils.showAlert(Defines.APP_TITLE,message:"",handler: nil)让attributedString = NSAttributedString(string: alertMSg,attributes: NSAttributedStringKey.font : UIFont(name:"Avenir-Light",大小: 15)!)alertController.setValue(attributedString,forKey:"attributedMessage") present(alertController,animated: true)
https://stackoverflow.com/questions/37170520
复制相似问题