cocoaTouch/SingleTeamViewController.m
changeset 3308 b6dcae4b6d2c
parent 3305 91074496d5c9
child 3312 6d8f1c76756d
equal deleted inserted replaced
3307:275af46392bd 3308:b6dcae4b6d2c
    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"];