project_files/HedgewarsMobile/Classes/TeamConfigViewController.m
changeset 4920 bc3c077e15a2
parent 4811 3edc0cdcfe03
child 4976 088d40d8aba2
equal deleted inserted replaced
4918:c6d3aec73f93 4920:bc3c077e15a2
    75         [emptyArray release];
    75         [emptyArray release];
    76 
    76 
    77         selectedTeamsCount = [self.listOfSelectedTeams count];
    77         selectedTeamsCount = [self.listOfSelectedTeams count];
    78         allTeamsCount = [self.listOfTeams count];
    78         allTeamsCount = [self.listOfTeams count];
    79 
    79 
    80         self.cachedContentsOfDir = [[NSArray alloc] initWithArray:contentsOfDir copyItems:YES];
    80         NSArray *contents = [[NSArray alloc] initWithArray:contentsOfDir copyItems:YES];
       
    81         self.cachedContentsOfDir = contents;
       
    82         [contents release];
    81     }
    83     }
    82     [self.tableView reloadData];
    84     [self.tableView reloadData];
    83 }
    85 }
    84 
    86 
    85 -(BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    87 -(BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {