2012-02-15 01:22:15

Abel Gancsos
put a webpage into an iPhone application, iphone development,objective-c

1) Make the uiwebview in the .h

2) Put the following into the didload function:

//Create a URL object.
NSURL *url = [NSURL URLWithString:@"[url]"];

//URL Requst Object
NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];

//Load the request in the UIWebView.
[[viewname] loadRequest:requestObj];



TIP: REPLACE [] WITH STANDARD HYPERTEXT PROTOCOL.
TIP: REPLACE WHATEVER IS BETWEEN THE [] WITH YOUR INFORMATION.



Hope that helps!