How do you create a method in Objective-C that accepts a NSString format (using the comma seperated list list of arguments to substitute into the format). Something like:
// Hello Kevin
NSString *name = @"Kevin";
[NSString stringWithFormat:@"Hello %@", name];
What you’re looking for is called a Variadic Function and in Objective-C you can write something like the following:
You can use this excellent example for Objective-C variadic functions for more detail.