Is there an alternative to UIWebView for dynamically displaying rich text?

Working with an application that requires a large amount of text breaks it based on the font size selected by the user, etc. and displays it with styles. Getting UIWebViewdocuments to paginate was extremely difficult. I saw a wrapper for Core Text that apparently takes care of the layout, but I understand that the main text cannot be selected.

Want to do something like books available through the eReader app or the app made for the Adderall Diaries book . Does anyone know how they did it? I assumed that it was UIWebView.

+3
source share
1 answer

Normally I would say using UILabel with an NSAttributedString, however, since you also need to select the text, things get a little more complicated. Go to the Apple Dev Forums and check the changes in iOS 6 for attributed strings (this is under the NDA).

0
source

Source: https://habr.com/ru/post/1775985/


All Articles