标签: ios uitextview nsattributedstring text-alignment
当我将属性字符串分配给UItextview时,文本始终在左侧对齐。
UItextview
我在文本视图中尝试过textview.textAlignment = .right
textview.textAlignment = .right
并将段落样式添加到属性字符串中
let paragraph = NSMutableParagraphStyle() paragraph.alignment = .right
请建议