Skip to content

jpittman/ResizableWebView

Repository files navigation

ResizableWebView

This is an experiment. The original idea was to create a dynamically sizable UIWebview based upon it's loaded content. This comes from the need to create a view to display some stylized text of considerable size. HTML being the easiest way to handle the style part, it made sense to use a UIWebView.

But the problem isn't that simple. What it became is:

  • View Controller with a ScrollView as its root view.
  • A UIWebView as one of its subviews.
  • altering the shape of both views to handle large amounts of text.

So I've needed to solve this problem for a while, but haven't really had the time to sit and come up with a simple repeatable solution.

License

This project's code is distributed under the terms of the MIT License. See the license.txt file for complete text.

Contributions

Please feel free to fork, fix, enhance or add and send me a pull request with the result. And if you decide to use this code in a published project, send me a message with a link.

References

The following links were used in putting this little experiment together. Pieces of each of these posts/threads were put to good use in coming up with the final solution.

About

An example of how to make UIWebViews a bit more dynamic.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published