Justify-aligning text in a text view in swift

时光怂恿深爱的人放手 提交于 2019-12-07 03:46:12

问题


It's a pretty trivial question I know, but I have to be able to justify-align the text in a text view using swift. It is an already existing text view on the storyboard which has been hooked up to an outlet, let's call it justifyTextView.

Can anybody give some code for this? I can't seem to find anything online about it.


回答1:


label.textAlignment = NSTextAlignment.Justified


来源:https://stackoverflow.com/questions/29829146/justify-aligning-text-in-a-text-view-in-swift

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!