我想增加 UILabel 中的行距,但我不知道如何增加。
我在 Stackoverflow 上找到了这个解决方案 [ /sf/answers/2741108891/],但我的 Xcode 总是显示以下内容:
Use of unresolved identifier 'NSParagraphStyleAttributeName'
我认为答案是正确的,但它对我不起作用。任何人都可以帮助解决这个问题吗?
xcode uilabel swift nsparagraphstyle line-spacing
line-spacing ×1
nsparagraphstyle ×1
swift ×1
uilabel ×1
xcode ×1