equal
deleted
inserted
replaced
36 // load the list of teams in the teams directory |
36 // load the list of teams in the teams directory |
37 -(void) viewWillAppear:(BOOL)animated { |
37 -(void) viewWillAppear:(BOOL)animated { |
38 [super viewWillAppear:animated]; |
38 [super viewWillAppear:animated]; |
39 |
39 |
40 NSArray *contentsOfDir = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:TEAMS_DIRECTORY() error:NULL]; |
40 NSArray *contentsOfDir = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:TEAMS_DIRECTORY() error:NULL]; |
41 NSMutableArray *array = [[NSMutableArray alloc] initWithArray: contentsOfDir copyItems:YES]; |
41 NSMutableArray *array = [[NSMutableArray alloc] initWithArray:contentsOfDir copyItems:YES]; |
42 self.listOfTeams = array; |
42 self.listOfTeams = array; |
43 [array release]; |
43 [array release]; |
44 |
44 |
45 [self.tableView reloadData]; |
45 [self.tableView reloadData]; |
46 NSLog(@"files: %@", self.listOfTeams); |
46 NSLog(@"files: %@", self.listOfTeams); |