Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added note about deprecated UIWebView and some minor editing
Note

Excerpt Include
WKWebView
WKWebView
nopaneltrue

While Titanium offers the power of using native UI components, sometimes it is necessary to use web content in our apps. For this reason, Titanium has the Ti.UI.WebView component that gives you access to the platform's underlying native webview. With this component you get the full range of HTML/CSS/JS capabilities that the platform has to offer.

...

But be cautious when using WebViews. They are the heaviest of native UI components. They take time to render and can effect affect the performance of your apps if used too often. This will be discussed in more detail in the WebView Use Cases section of this chapter.

...

WebView documents

The WebView Component

In this sectiondocument, you'll learn how to use the Ti.UI.WebView component to display and interact with web content in your apps. You'll see how to use both static and dynamic local web content, as well as existing webpagesweb pages, RSS feeds, and other remote web content. You'll also find some resources for optimizing web content to work well with WebViews (and mobile browsers).

...

Finally, you'll explore some common use cases of the Ti.UI.WebView in Titanium apps. You will also further explore why caution must be taken to not overuse these components, particularly when the same result could be achieved with native components.

div
alignright
So let's get started: The WebView Component >