A class used to display web content from within an iOS application. Note that UIWebView is deprecated since iOS 8, it is recommended by Apple to use WKWebView instead.
UIWebView is used to render HTML content in iOS (ios) applications (including accompanying CSS and JavaScript). UIWebView is effectively a miniature web browser that you can embed within your app. The user can view a web page (both local or from the Internet) in the app itself instead of launching the separate Safari app. UIWebView is available in iOS 2.0 and later.
Set the delegate property for the UIWebView to an object conforming to the UIWebViewDelegate protocol if you want to track the loading of web content from your app.
Note that UIWebView is deprecated since iOS 8, it is recommended by Apple to use WKWebView instead.
Resources:
- UIWebView Class Reference
- Text, Web, and Editing Programming Guide for iOS
- See Safari Web Content Guide for how to create web content that is compatible with and optimized for displaying in Safari and in
UIWebView
to load the image.
The problem is that the image doesn't load (ie. it can't be found) even though it's added as a…
I load this test.html file into my web view:
NSURL *url = [[NSBundle mainBundle]…