Hi guys, sorry I am very very new to programming but I am trying to create a mini web browser type app just for some practice. I want a user to be able to type a URL in a UITextField, then click a button and have the site pop up in the webview. Here is my action:
textbar is what I named the textfield object.
thanks for the help!
Code:
-(IBAction) displaySite:(id)sender {
NSURL *inputURL;
NSString *inputURLString;
inputURLString=textBar.text;
inputURL=[[NSURL alloc]initWithString:inputURLString];
[websiteView loadRequest:[NSURLRequest requestWithURL:inputURL]];
thanks for the help!
Last edited by a moderator: