Instance Property

port

The port number URL component, or nil if not present.

Declaration

@property(copy) NSNumber *port;

Discussion

For example, in the URL http://www.example.com:8080/index.php, the port number is 8080.

If you attempt to set the port to a negative port number, this class throws an exception.

See Also

Accessing Components in Native Format

fragment

The fragment URL component (the part after a # symbol), or nil if not present.

host

The host URL subcomponent, or nil if not present.

password

The password URL subcomponent, or nil if not present.

path

The path URL component, or nil if not present.

query

The query URL component as a string, or nil if not present.

queryItems

The query URL component as an array of name/value pairs.

scheme

The scheme URL component, or nil if not present.

user

The username URL subcomponent, or nil if not present.