Hi everyone!
Below is a small code to display contents over UIWebView.
Assuming that you have declared a UIWebView in your header file; in my case it is detailWebView.
[code]
NSString* str = @"http://www.yahoo.com";
NSURL* url = [NSURL URLWithString:str];
[self.detailWebView loadRequest:[NSURLRequest requestWithURL:url]];
[/code]
That's it; keeping user interaction and multi-touch options checked in the xib file will allow the user to play with the web page.
Stay blessed.
share every bit of new thing you learn;
Categories & Tags
Comments (1)
Leave a Reply