Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 04-25-2009, 08:56 PM   #4 (permalink)
Bertrand21
Beast Mode
 
Join Date: Dec 2008
Age: 21
Posts: 1,971
Bertrand21 is on a distinguished road
Default

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.
__________________
Haters gonna Hate
Likers gonna Like

Last edited by Bertrand21; 04-25-2009 at 08:58 PM.
Bertrand21 is offline   Reply With Quote
 

» Advertisements
» Online Users: 450
17 members and 433 guests
apatsufas, CatfishBlues Games, ChrisYates, Duncan C, gogoman, ipodphone, Kieren Harrold, LegionMD, mer10, milanalina, PavelMik, Robemtims, sacha1996, solie, themartist, VinceYuan, yiliorey
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,622
Threads: 94,087
Posts: 402,801
Top Poster: BrianSlick (7,990)
Welcome to our newest member, yiliorey
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 07:04 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.