Justified Alignment in UITextView - iPhone

后端 未结 6 1489
名媛妹妹
名媛妹妹 2020-12-03 02:54

In my application, i have a UITextView with many lines, but I need the data with proper appearance.

Is it possible to have Justified Alignment in

6条回答
  •  Happy的楠姐
    2020-12-03 03:27

    There is another option. CATextLayer.

    It supports justified alignement explicitly. And it's a lot lightweight and faster than UIWebView. Because it's essentially a thin layer over CoreText, so does not require heavy layout process like UIWebView.

    Or you can use one more another option, just using lower level CoreText framework directly.

    Anyway, they doesn't support text editing. If you need it, you have to implement it all yourself.

提交回复
热议问题