How to add object to nsarray objective c?
Answer / Deepti
To add an object to an NSArray in Objective-C, you can use the addObject: method. Here is an example: NSArray *array = ...; [array addObject:newObject];
| Is This Answer Correct ? | 0 Yes | 0 No |
Tell us the result when you invoke a particular method on a nil pointer?
What is objective c vs c?
Can we implement dealloc in arc? If yes, what is the need to do that?
What is the difference between nsdictionary and nsmutabledictionary?
How do you check for leaks?
What is singleton in objective c?
What are the classifications of property?
What are nsautoreleasepool? When to use them?
What is the major difference between objective c and swift?
What is the difference between category and extension in objective c?
Is method and function same?
What is class extension?