Returns an 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.
An NSLocale object specifying the locale to use. To use the current locale (specified by user preferences), pass [NSLocalecurrentLocale]. To use the system locale, pass nil.
For legacy support, this may be an instance of NSDictionary containing locale information.
A list of arguments to substitute into format.
An NSString object initialized by using format as a template into which values in argList are substituted according the locale information in locale. The returned object may be different from the original receiver.
The following Objective-C code fragment illustrates how to create a string from myArgs, which is derived from a string object with the value “Cost:” and an int with the value 32:
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.