且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在UITextView中水平居中放置一行文本?

更新时间:2022-02-04 09:40:35

尝试包括该行在内,将返回您希望应用的样式范围内的那条线的中心。

Try including the line returns around the the line that you'd like centered within the range that you apply the style to.