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 |
Can I write some c++ function in same .m file? Will it compile? If no, what changes should I do to compile it?
What is a class in objective c?
What is the isa member?
What is an objective description?
What is meant by not thread safe?
What is a function file?
How to convert data to string in objective c?
What is difference between datasource and delegate?
What is the use of category in objective-c?
Does objective c have function overloading?
What is super in objective c?
Can I write some c++ function in same .m file?