in Technology by (1.8m points)

What can’t we put into an array or dictionary?

1 Answer

0 votes
by (1.8m points)

nil is not an object that you can add to an array: An array cannot contain nil. This is why addObject:nil crashes.

Related questions

0 votes
asked Nov 30, 2020 in Technology by JackTerrance (1.8m points)