- (id)initWithFormat:(NSString *)format locale:(id)locale arguments:(va_list)argList
va_list myArgs; |
|
NSString *myString = [[NSString alloc] initWithFormat:@"%@: %d\n" |
locale:[[NSUserDefaults standardUserDefaults] dictionaryRepresentation] |
arguments:myArgs]; |
The resulting string has the value “Cost: 32\n”.