equal
deleted
inserted
replaced
37 |
37 |
38 |
38 |
39 - (void)viewWillAppear:(BOOL)animated { |
39 - (void)viewWillAppear:(BOOL)animated { |
40 [super viewWillAppear:animated]; |
40 [super viewWillAppear:animated]; |
41 NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); |
41 NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); |
42 NSString *teamFile = [[NSString alloc] initWithFormat:@"%@Teams/%@.plist",[paths objectAtIndex:0],self.teamName]; |
42 NSString *teamFile = [[NSString alloc] initWithFormat:@"%@/Teams/%@.plist",[paths objectAtIndex:0],self.teamName]; |
43 NSDictionary *teamDict = [[NSDictionary alloc] initWithContentsOfFile:teamFile]; |
43 NSDictionary *teamDict = [[NSDictionary alloc] initWithContentsOfFile:teamFile]; |
44 [teamFile release]; |
44 [teamFile release]; |
45 |
45 |
46 self.hogsList = [teamDict objectForKey:@"hedgehogs"]; |
46 self.hogsList = [teamDict objectForKey:@"hedgehogs"]; |
47 self.teamName = [teamDict objectForKey:@"teamname"]; |
47 self.teamName = [teamDict objectForKey:@"teamname"]; |