The username URL subcomponent, or nil
if not present.
SDKs
- iOS 7.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Foundation
Declaration
@property(copy) NSString *user;
Discussion
For example, in the URL http://username:
, the user is username
.