I have a "bookshelf" array that contains four NSMutableDictionary "book" (which contains three properties), my question is how do I access the hasBeenRead flag/property of the "book" dictionary to find out which book has not been read?
Book(s):
{
"title":"Winnie-the-Pooh",
"author":"A.A. Milne"
"hasBeenRead": No
}
Bookshelf:
[
{
"title":"Jungle Book",
"author":"Rudyard Kipling",
"hasBeenRead":"Yes"
},
{
"title":"Winnie-the-Pooh",
"author":"A.A. Milne",
"hasBeenRead":"No"
},
{
"title":"Alice In Wonderland",
"author":"Lewis Carroll",
"hasBeenRead":"Yes"
}
]
I can get the Book NSMutableDictionary:
for (NSString* readBook in self.bookshelf) {
NSLog(@"Books: %@", readBook);
}
Thanks.