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 gcd? What are its advantages over nsthread?
Why create a custom view?
What are objective- c blocks?
What is objective point of view?
What are the three main types of property?
How dispatch_once runs only once?
When might you use a cfarray/dictionary instead of a nsarray/dictionary?
Explain what are the attributes of category?
What is delegation protocol?
How to call objective c function in swift?
Mention whether nsobject is a parent class or derived class.
What is the difference between class and category?