Instance Property

user

The username URL subcomponent, or nil if not present.

Declaration

@property(copy) NSString *user;

Discussion

For example, in the URL http://username:password@www.example.com/index.html, the user is username.

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.

port

The port number 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.