How to limit the content in UITextView in ios

前端 未结 7 2271
迷失自我
迷失自我 2021-02-08 11:56

I want to load long text in TextViews of different Views. The text should be divided to pages when it reaches end of the textviews. And the next textview must start with the con

7条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-08 12:35

    I did something like that using the library DTCoreText.

    DTCoreText includes layout helpers with them was easy to cut the text in columns and create the different textviews. I created an example on github showing how can be done:

    https://github.com/brovador/DTCoreTextColumnsExample

    Hope it helps

提交回复
热议问题