Name for %@ %d in an NSString

| | August 5, 2015

What are these called in Objective C? @"%@" @"%d" @"%i"

3 Responses to “Name for %@ %d in an NSString”

  1. They are called format specifiers, could also be called ‘placeholders in a string for the variables that will follow’.

  2. They are NSString literals. More specifically, they look they are being used as formatting strings for printf style functions.

  3. I believe that they are called ‘format placeholders’, as suggested by this wikipedia article:

Leave a Reply