私はNSAttributedStringテキストを使用し、UItextviewにGIF画像用UItextviewにNSAttributedStringテキストと画像GIF(自動再生)を挿入するには?
mycode以下dostn'tの仕事を表示するには添付ファイルのgif画像が欲しい
let mytext = UITextview()
let result = NSMutableAttributedString()
let attachment = NSTextAttachment()
attachment.image = UIImage(named:"abc.gif")
let attachmentString = NSAttributedString(attachment: attachment)
let myString = NSMutableAttributedString(string:"")
myString.appendAttributedString(attachmentString)
result.appendAttributedString(myString)
mytext.attrbutedText = result
添付ファイルのgif画像 を解決するのに役立ちそしてそれてください自動的に再生されます。事前
あなたがそれを達成しようとしていますか?この[link](http://stackoverflow.com/help/how-to-ask)をチェックして、stackoverflowで質問する方法を理解してください –
stackoverflowを使うまず、素人を許してください何が間違っているのでしょうか。 –
プレイメッセージとGIF画像をUITextviewで自動的に表示したいです。 –