How can we put nil it into dictionary/array?
Answer / Rakhi Kumari
In Objective-C, you can add nil to arrays and dictionaries by simply assigning them. For example: NSMutableArray *myArray = [NSMutableArray array]; myArray[0] = nil; NSDictionary *myDict = @{@"key": nil};
| Is This Answer Correct ? | 0 Yes | 0 No |
What is an m file?
How to declare global variable in objective c?
What is typedef objective c?
Who calls dealloc method?
What is the difference between atomic and nonatomic synthesized properties?
Is objective c statically typed?
What is gcd?
Why swift is faster than objective c?
Explain what is dot notation?
How do you write an objective?
What objective-c program consists of?
What is objective c?