UITextView 文字排列
UITextView text arrangement
UITextView
文字如何做到从左到右从上到下?像这样!感谢你的回复。
截图:
谢谢!有效!我试试
textView.transform = CGAffineTransform(rotationAngle: .pi / 2)
textView.transform = textView.transform.scaledBy(x: 1, y: -1)
但是内容大小没有改变!换行符的位置不准确。enter image description here
试试吧。
yourTextView.transform = CGAffineTransform(rotationAngle: .pi/2)
您可以通过对 rotationAngle
进行一些更改来轻松更改旋转贴图,具体取决于 angle
UITextView
文字如何做到从左到右从上到下?像这样!感谢你的回复。
截图:
谢谢!有效!我试试 textView.transform = CGAffineTransform(rotationAngle: .pi / 2) textView.transform = textView.transform.scaledBy(x: 1, y: -1) 但是内容大小没有改变!换行符的位置不准确。enter image description here
试试吧。
yourTextView.transform = CGAffineTransform(rotationAngle: .pi/2)
您可以通过对 rotationAngle
进行一些更改来轻松更改旋转贴图,具体取决于 angle