开发者

is there any way to do JUSTIFY the text in a UITextView in iOS

Is there any way to 'justify' the text in a UITextView in开发者_运维问答 an iOS app?


No that's not possible in a UITextView. There are two ways to achieve this.

  1. Write a method that adusts the text with spaces in a way that it fits the textview exactely
  2. Use CATextLayer. That class has a property to set the alignment to Justifiy.

I hope this helps you out.

Sandro Meier

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜