equal
deleted
inserted
replaced
152 |
152 |
153 NSInteger row = [indexPath row]; |
153 NSInteger row = [indexPath row]; |
154 NSString *selectedTeamFile = [listOfTeams objectAtIndex:row]; |
154 NSString *selectedTeamFile = [listOfTeams objectAtIndex:row]; |
155 NSLog(@"%@",selectedTeamFile); |
155 NSLog(@"%@",selectedTeamFile); |
156 |
156 |
157 // load data about the team and extract info |
157 childController.title = [selectedTeamFile stringByDeletingPathExtension]; |
158 NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); |
|
159 NSString *teamFile = [[NSString alloc] initWithFormat:@"%@/Teams/%@",[paths objectAtIndex:0],selectedTeamFile]; |
|
160 NSMutableDictionary *teamDict = [[NSMutableDictionary alloc] initWithContentsOfFile:teamFile]; |
|
161 [teamFile release]; |
|
162 childController.teamDictionary = teamDict; |
|
163 [teamDict release]; |
|
164 |
|
165 [childController.tableView setContentOffset:CGPointMake(0,0) animated:NO]; |
158 [childController.tableView setContentOffset:CGPointMake(0,0) animated:NO]; |
166 |
159 |
167 // this must be set so childController can load the correct plist |
160 // this must be set so childController can load the correct plist |
168 //childController.title = [[listOfTeams objectAtIndex:row] stringByDeletingPathExtension]; |
161 //childController.title = [[listOfTeams objectAtIndex:row] stringByDeletingPathExtension]; |
169 [self.navigationController pushViewController:childController animated:YES]; |
162 [self.navigationController pushViewController:childController animated:YES]; |