textviewに行間を追加したいと思います。次のコードでは、 "textViewにはmember attributedTextがありません"というエラーが表示されます。 この問題を解決するにはどうすればよいですか?textviewに行間を追加しないでください
import UIKit
@objc protocol TextViewCellProtocol:NSObjectProtocol {
func textViewCellDidTouchedButton(_ cell:TextViewCell)
}
class TextViewCell: UICollectionViewCell {
@IBOutlet var textView:FuriganaTextView!
let style = NSMutableParagraphStyle()
style.lineSpacing = 40
let attributes = [NSParagraphStyleAttributeName : style]
textView.attributedText = NSAttributedString(string: textView.text,
attributes: attributes)
}
こんにちは正直なところですが、別のエラーが発生しています。 FuriganatextView「タイプの値が 『テキスト』何のメンバーを持っていない 『』。」 – risa8
risa8 @私がチェックし、あなたに –
を更新しますが、あなたにたくさんありがとうございました:) – risa8