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 05-13-2009, 01:40 AM   #2 (permalink)
Bertrand21
Beast Mode
 
Join Date: Dec 2008
Age: 21
Posts: 1,971
Bertrand21 is on a distinguished road
Default

you could split the url string by the "/" so it would split http://www.google.com/here

so use this code:

Code:
NSString *split2= @"http://www.google.com/here";
NSArray* split = [string2 componentsSeparatedByString:@"/"];
	NSString* webURL = [NSString stringWithFormat:@"%@",[split objectAtIndex:2]];
and that brings back www.google.com
__________________
Haters gonna Hate
Likers gonna Like
Bertrand21 is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 175,637
Threads: 94,101
Posts: 402,822
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jessicagx69
Powered by vBadvanced CMPS v3.1.0

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