NSMutableArray *output = [[NSMutableArray alloc]init];
or
NSArray *output = [[NSMutableArray alloc]init];
I can set keys and values. Now, I just want to access each key and value, but I don’t know the number of keys set.
In PHP it is very easy, something as follows:
foreach ($output as $key => $value)
How is it possible in Objective-C?
I think you are confused with NSDictionary with NSArray.
In NSDictionary you can set the object with the keys like
and you can get the object like
In your Array it just adds the object in the index.
get the object as