0 votes
in Technology by (1.7m points)

How can we put nil it into dictionary/array?

1 Answer

0 votes
by (1.7m points)

The nil in initWithObjects: is only there to tell the method where the list ends, because of how C var args work. When you add objects one-by-one with addObject: you don’t need to add a nil.

...