init(string:)
Returns an NSString object initialized by copying the characters from another given string.
Declaration
convenience init(string aString: String)Parameters
- aString:
The string from which to copy characters. This value must not be
nil.
Return Value
An NSString object initialized by copying the characters from aString. The returned object may be different from the original receiver.
See Also
Creating and Initializing Strings
init()init(bytes:length:encoding:)init(bytesNoCopy:length:encoding:freeWhenDone:)init(characters:length:)init(charactersNoCopy:length:freeWhenDone:)init(format:arguments:)init(format:locale:arguments:)init(data:encoding:)localizedUserNotificationString(forKey:arguments:)localizedStringWithFormat(_:_:)unichar