How to show URL in UIWebView in iPhone/iPad/iPod :: N-FAQ

Aasim Naseem 1

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.

NSString* str = @”http://www.yahoo.com”;

NSURL* url = [NSURL URLWithString:str];

[self.detailWebView loadRequest:[NSURLRequest requestWithURL:url]];

Thats it; Keeping user interaction and multi-touch options checked in xib file will allow user to play with web page;

stay blessed;

share every bit of new thing you learn;


This post belongs to N-FAQ category where i post anything i learn new during my work; N-FAQ is basically Not-FAQ;

free counters


Leave a Reply

Your email address will not be published. Required fields are marked *