When I NSLog my NSMutableArray, what I get is the following
{ ABSNFGH True,
FDGJDKG False
GFKFLDL True
PDHJHN True
FHKDMD True
DSHDMD False )
The problem is that, I am not creating this array. But I want to store each entry(e.g. ABSNFGH) in a string and its corresponding status in a bool inside a for loop . How can I do this?
Suppose we name your array as
yourArrayYou need to add this loop:
I think this should work. I have not tried implementing it personally, but may be this would work.
EDIT:
yourArray should ideally be like this:
Refer to this link. Here you just need to replace
objectwith aNSDictionaryand you are done.Making an array of Objects in Objective-C.
Here I have modified ennuikiller’s answer from that link, to make you understand for your case:
@interface Controller
Hope this helps.