Returns a Boolean value that indicates whether a given string matches the beginning characters of the receiver.
Original signature is '- (BOOL)hasPrefix:(NSString *)aString'
Available in Mac OS X v10.0 and later.
Declaration Syntax
Parameters
- aString (NSString)
- A string.
Return Value
YES if aString matches the beginning characters of the receiver, otherwise NO. Returns NO if aString is empty.
Version Information
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)