0
How can we put nil it into dictionary/array?

Open 1 Answers 32 Views Technology

How can we put nil it into dictionary/array?

1 Answer

0

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.

by (236k points)
...