Makes the search screen actually do searches.

Makes the monster detail view set the title if there is no name label bound.
This commit is contained in:
2020-09-07 16:26:51 -07:00
parent 48792ceebe
commit e18f44a136
4 changed files with 117 additions and 128 deletions

View File

@@ -16,18 +16,11 @@
- (void)viewDidLoad {
[super viewDidLoad];
self.monsterName.text = _monster.name;
// Do any additional setup after loading the view.
if (self.monsterName != nil) {
self.monsterName.text = self.monster.name;
} else if (self.navigationItem != nil && self.navigationItem.title != nil) {
self.navigationItem.title = self.monster.name;
}
}
/*
#pragma mark - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
// Get the new view controller using [segue destinationViewController].
// Pass the selected object to the new view controller.
}
*/
@end