What can’t we put into an array or dictionary?
Answer / Pranaw Kumara
In Objective-C, you cannot add non-object types such as primitive data types (like int, char, float) directly into arrays or dictionaries. To use these types, you would typically wrap them in NSNumber objects before adding to collections.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is objective c runtime?
What is abi stability?
What is difference between nil and nill?
What is an example of category?
How to make a code snippet thread safe?
What are the delegate?
What is protocol in objective-c?
What is a class in xcode?
What is instancetype?
What is ivar objective c?
Explain the difference between atomic and nonatomic synthesized properties.
Can I write some c++ function in same .m file? Will it compile? If no, what changes should I do to compile it?