I want to add more data at 0th index of my array. There is already an array stored at 0th index of my array. Here is the line of code where data is stored at 0th index of my array.
if ([[albumDetailsResponse valueForKey:@"result"] isEqualToString:@"IsValidUser"]) {
[albumURLArray addObject:[albumDetailsResponse valueForKey:@"data"]];
}
Here, albumURLArray is a NSMutableArray and at its 0th index, the object will be stored. Now, I want to add more URL at 0th index of the same array. So, How can I achieve this?
Thanks in advance.
How to add object at first index of NSArray In this question's answer, the data is added at new index in the NSMutableArray while what I want is I want to add new data at 0th index of that array. So, my requirement is different then this question.
albumURLArrayis actually a dictionary. The function you are using to store the data is not supported on arrays and is a dictionary function.