I'm building news app. I need to beautifully show the body of news in separate page. The body may contain bold, italic, images, links, paragraphs
etc, the all kind of html tags occurred in article body.
Years before I would use RTLabel but it's not supported anymore. I wouldn't mess with old libraries.
I thought about UIWebView, but I need something more native and easy to customize. What you think?
What about TTTAttributedLabel, is it the right choice I should consider?
Use WKWebview
for your purpose and it would serve you well.
As far as the customizing the WKWebview
in between view and stretching it for its full content, YES you can do that as well,as long as the WKWebview
content is a whole and you dont want a view in between the webview content.
Here's what you got to do --
WKWebview
right after the content of the view, so that the WKWebview
's y would start right after the y axis of the view.Here is the tricky part.
You can do this by printing webView.scrollView.contentSize.height
in this delegate method of the WKWebview
--didFinishNavigation
WKWebview
y axis.Hope this helps