cocoaTouch/iPad/TeamSettingsViewController.m
changeset 3276 039145459ac8
parent 3270 9bd8fb1707b9
equal deleted inserted replaced
3275:9d1cdde54f45 3276:039145459ac8
   113 
   113 
   114 
   114 
   115 #pragma mark -
   115 #pragma mark -
   116 #pragma mark Table view delegate
   116 #pragma mark Table view delegate
   117 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
   117 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
   118     if (1 == [indexPath section]) {
   118     if (childController == nil) {
   119         if (childController == nil) {
   119         childController = [[SingleTeamViewController alloc] initWithStyle:UITableViewStyleGrouped];
   120             childController = [[SingleTeamViewController alloc] initWithStyle:UITableViewStyleGrouped];
       
   121         }
       
   122         
       
   123         NSInteger row = [indexPath row];
       
   124         NSString *selectedTeam = [[list objectAtIndex:row] stringByDeletingPathExtension];
       
   125         
       
   126         childController.teamName = selectedTeam;
       
   127         [self.navigationController pushViewController:childController animated:YES];
       
   128     }
   120     }
       
   121     
       
   122     NSInteger row = [indexPath row];
       
   123     NSString *selectedTeam = [[list objectAtIndex:row] stringByDeletingPathExtension];
       
   124     
       
   125     childController.teamName = selectedTeam;
       
   126     [self.navigationController pushViewController:childController animated:YES];
   129 }
   127 }
   130 
   128 
   131 /*
   129 /*
   132 -(void)tableView:(UITableView *)tableView accessoryButtonTappedForRowWithIndexPath:(NSIndexPath *)indexPath {
   130 -(void)tableView:(UITableView *)tableView accessoryButtonTappedForRowWithIndexPath:(NSIndexPath *)indexPath {
   133     UIAlertView *alert = [[UIAlertView alloc] initWithTitle: @"Hey, do you see the disclosure button?" 
   131     UIAlertView *alert = [[UIAlertView alloc] initWithTitle: @"Hey, do you see the disclosure button?"