I would like to create a custom search in an iPhone using a UIWebView.
Example: Replace {query} in the line below with what the user has typed in.
URL:
http://stackoverflow.com/search?q={query}&submit=search
Final Code:
[super viewDidLoad];
_webView.delegate = self;
NSString *queryString = _searchField.text;
NSString *request2 = [NSString stringWithFormat:@"http://stackoverflow.com/search?q=%@&submit=search", queryString];
NSURLRequest *requestURL = [NSURLRequest requestWithURL:[NSURL URLWithString:request2]];
[_webView setScalesPageToFit:YES];
[self.webView loadRequest:requestURL];
Something like this ?