The following is my code. I simply want to load a website page and put a back button on screen. Don\'t know why nothing shows on the screen.
in .h
#i
Add the below code into your viewcontroller.m file viewDidLoad method.
UIWebView *webView = [[UIWebView alloc]init];
NSString *urlString = @"http://www.sourcefreeze.com";
NSURL *url = [NSURL URLWithString:urlString];
NSURLRequest *urlRequest = [NSURLRequest requestWithURL:url];
[webView loadRequest:urlRequest];
[self.view addSubview:webView];
for complete uiwebview example please refer the below link.
http://sourcefreeze.com/ios-webview-uiwebview-example/