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
  • 37,241
  • 25
  • 195
  • 267
setimouse
  • 310
  • 3
  • 9
  • 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
  • 90,870
  • 19
  • 190
  • 224