Quote:
Originally Posted by Bertrand21
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 Google
|
Awesome, thanks!
Another way I found to do it is that NSURL contains a path method. I can get the path, and subtract it from the full URL, and I am left with what I want.