2

Is there a function which could parse url into protocol, domain(IP), port, uri, etc.? Just like the parse_url() function in PHP.

Cœur
  • 34,719
  • 24
  • 185
  • 251
setimouse
  • 201
  • 3
  • 8
  • see http://stackoverflow.com/questions/1967399/parse-nsurl-path-and-query-iphoneos it shows how to parse url in objective-c. – manutd Jul 25 '11 at 07:36

1 Answers1

4

See the documentation of NSURL, in particular +[NSURL URLWithString:].

DarkDust
  • 87,789
  • 19
  • 183
  • 216