You want to load a web page dynamically right inside
your iOS app.
Solution
Use the UIWebView
class.
Discussion
A web view is what the Safari browser uses on iOS to load web
content. You have the whole power of Safari in your iOS apps through
the UIWebView class. All you have
to do is to place a web view on your UI and use one of its loading
methods:
loadData:MIMEType:textEncodingName:baseURL:
Loads an instance of NSData into the web view.
loadHTMLString:baseURL:
Loads an instance of NSString into the web view. The string
should be a valid HTML, or in other words, something that a web
browser can render.
You are currently reading a PREVIEW of this book.
Get instant access to over
$1 million worth of books and videos.