{"action":"opened","issue":{"url":"https://api.github.com/repos/EARoa/GroceriesApp/issues/1","repository_url":"https://api.github.com/repos/EARoa/GroceriesApp","labels_url":"https://api.github.com/repos/EARoa/GroceriesApp/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/EARoa/GroceriesApp/issues/1/comments","events_url":"https://api.github.com/repos/EARoa/GroceriesApp/issues/1/events","html_url":"https://github.com/EARoa/GroceriesApp/issues/1","id":163761026,"number":1,"title":"Grocery Category Items Not Being Maintained","user":{"login":"azamsharp","id":16604,"avatar_url":"https://avatars.githubusercontent.com/u/16604?v=3","gravatar_id":"","url":"https://api.github.com/users/azamsharp","html_url":"https://github.com/azamsharp","followers_url":"https://api.github.com/users/azamsharp/followers","following_url":"https://api.github.com/users/azamsharp/following{/other_user}","gists_url":"https://api.github.com/users/azamsharp/gists{/gist_id}","starred_url":"https://api.github.com/users/azamsharp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azamsharp/subscriptions","organizations_url":"https://api.github.com/users/azamsharp/orgs","repos_url":"https://api.github.com/users/azamsharp/repos","events_url":"https://api.github.com/users/azamsharp/events{/privacy}","received_events_url":"https://api.github.com/users/azamsharp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-05T02:27:33Z","updated_at":"2016-07-05T02:27:33Z","closed_at":null,"body":"Inside GroceryCategoryTableViewController change the addButtonWasPressed to the following:\r\n\r\n-(void) addButtonWasPressed: (NSString *) category{\r\n    \r\n    //create the Grocery Category Object\r\n    GroceryCategory *groceryCategory = [[GroceryCategory alloc]init];\r\n    groceryCategory.title = category;\r\n    \r\n    // initialize the grocery items array here\r\n    groceryCategory.groceryItemsArray = [NSMutableArray array]; // THIS LINE\r\n    \r\n    [_groceryCategoriesArray addObject:groceryCategory];\r\n    \r\n    [self.tableView reloadData];\r\n    NSLog(@\"%@\", category);\r\n }\r\n\r\nNow, inside GroceryItemsTableViewController use the self.selectedGroceryCategory.groceryItemsArray instead of initializing a new one. "}}
{"actor":{"display_login":"azamsharp"}}