0 votes
in Technology by (321k points)

How can we put nil it into dictionary/array?

1 Answer

0 votes
by (321k 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.

Related questions

...