View iOS message as UIWebView

The view of the email message looks like I see it, it is a scroll view with the container, the container again has a header (including the from, date, and subject fields) and a webview of the content.

Now, when you zoom in on the web view, the title stays in the same place and size.

Is it possible to make a similar representation using public APIs? I see that UIWebView is not a subclass of UIScrollView, so it does not look like scrolling in scroll.

+3
source share
3 answers

In the Apple Developer Forum, this issue was discussed in the UIWebView in the UITableView , and Penso published an example implementation: webview-in-tableview . But the implementation does not behave 100% like Mail one.

+1
source

Putting javascript into a UIWebView will do the job, but scaling is still a problem. that is, we cannot scale only the details of the mail body, leaving other parts, such as To, Cc, Bcc, Subject unzoomed.

+1
source

UIWebView UIScrollView Builder .

-1

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


All Articles