When will you use nsarray and nsmutablearray?
Answer / Chandra Bahadur
You'll use NSArray when you need an immutable array, like storing a constant set of values or returning a result from a method. Use NSMutableArray when you need to modify the contents of an array during runtime, such as adding new elements, removing existing ones, or changing their order.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is polymorphism in objective-c?
What is nsstring?
What is protocol in objective-c?
Is objective c object oriented?
What is m file?
What are the classifications of property?
What is id?
Mention which class can you use for parsing of xml in iphone?
What is the isa member?
Which language does apple use?
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 objective c programming used for?