If you mean an NSMutableArray, then:
1. Read the class reference doc.
2. Look for a method that will insert an objectat a particular index. (hint: underlined words are clues)
i have a NSArray, each element is a string value, i want to add a string before all the strings in my array. is there any function to do that ? or i should do that manually?
i have a NSArray, each element is a string value, i want to add a string before all the strings in my array. is there any function to do that ? or i should do that manually?
NSArray is immutable. Do you know what "immutable" means? It means "can't be changed". Since the NSArray can't be changed, you can't insert anything, you can' remove anything, and you can't change any value already stored there.
If you want a mutable array, you must use NSMutableArray.
i have a NSArray, each element is a string value, i want to add a string before all the strings in my array. is there any function to do that ? or i should do that manually?