in Technology by (1.8m points)

How can we put nil it into dictionary/array?

1 Answer

0 votes
by (1.8m 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

0 votes
asked Jan 8, 2021 in Technology by JackTerrance (1.8m points)
...