[Fast hint] UIWebView load html string
Now let's do a simple example to load a htmlString in the UIWebView
it's really simple
- (void)viewDidLoad
{
[super viewDidLoad];
UIWebView *webView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, 320, 480)];
NSString *htmlString = [NSString stringWithString:@"WebView html String Example
My first paragraph.
"];
[webView loadHTMLString:htmlString baseURL:nil];
[self.view addSubview:webView];
}
For this hint is all up to the next