Adds name to Monster detail view.

Adds json initializers for Monster.
This commit is contained in:
2020-09-06 17:33:58 -07:00
parent 32025eb4e7
commit 1342c55a1f
4 changed files with 78 additions and 4 deletions

View File

@@ -26,8 +26,7 @@
monster = [[Monster alloc] init];
monster.name = @"Pixie";
[_monsters addObject:monster];
monster = [[Monster alloc] init];
monster.name = @"Acolyte";
monster = [[Monster alloc] initWithJSONString:@"{\"name\":\"Acolyte\"}"];
[_monsters addObject:monster];
// Do any additional setup after loading the view.