NSString object initialized by copying the characters from a given C array of UTF8-encoded bytes.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
NULL-terminated C array of bytes in UTF-8 encoding. This value must not be
NSString object initialized by copying the bytes from
nullTerminatedCString. The returned object may be different from the original receiver.
Creating and Initializing Strings
Returns an initialized
NSString object that contains no characters.
NSString object initialized by copying the characters from another given string.
init(format: String, locale: Any?, arguments: CVaListPointer)
NSString object initialized by using a given format string as a template into which the remaining argument values are substituted according to given locale information. This method is meant to be called from within a variadic function, where the argument list will be available.
This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.Learn more about using Apple's beta software