its pretty simple. lets take google for example...
Code:
NSString *mainGoogle = [NSString stringWithFormat:@"http://www.google.com/search?hl=en&safe=off&q=%@&btnG=Search", searchText.text];
NSString *seachWordsGoogle = [mainGoogle stringByReplacingOccurrencesOfString:@" " withString:@"+"];
addressBar.text = [NSString stringWithFormat:@"%@", seachWordsGoogle];
so say i search for "Iphone Application Tutorials"
it takes that text and replaces " "(spaces) with "+" which is how google does it in the URL.
and then it takes that text and places it in the
Code:
http://www.google.com/search?hl=en&safe=off&q=%@&btnG=Search
so it comes out like
Code:
http://www.google.com/search?hl=en&safe=off&q=Iphone+Application+Tutorials&btnG=Search]
and then have a webview or something and send the url to that.