Get parts of a NSURL in objective-c
This isn’t exactly the third level, mind you. An URL is split like that way: the protocol or scheme (here, http) the :// delimiter the username and the password (here there isn’t any, but it could be username:password@hostname) the host name (here, digg.com) the port (that would be :80 after the domain name for instance) … Read more