Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • 20
    I downvoted this a year ago because it's not a very good answer. To cope with concatenating a large number of strings, Palimondo's implementation requires either implementing a large number of very similar looking methods, or calling the methods several times, resulting in a large chunk of code that essentially just concatenates strings. Using this approach, you don't get any benefit over a simple stringWithFormat:. Not to mention the lack of named parameters which is not only non-standard but also confusing. Commented Mar 26, 2013 at 12:57
  • 2
    The original asker mentioned stringByAppendingString, and he never said anything about using more than two arguments. I like this answer better than the accepted one. It's pretty clever. Commented Jul 9, 2014 at 17:00