I have an NSString with an URL, in this way:
http://someurl.com/something
How would I get someurl.com only? I\'ve already trie
someurl.com
Use
[[NSURL URLWithString:@"http://someurl.com/something"] host]