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 |
How do you call a method in objective c?
What is delegate in objective c?
Why is objective c used?
What is an extension?
What are the rules of variable?
Is swift based on objective c?
When should you call dealloc method?
What is toll-free bridging? When is it useful?
How to add custom cell in uitableview in objective c?
Who calls dealloc method? Can we implement dealloc in arc? If yes, what is the need to do that?
Explain what do you mean by synthesized in objective-c?
How can we put nil it into dictionary/array?