--- a/cocoaTouch/iPad/TeamSettingsViewController.m Fri Apr 02 22:42:47 2010 +0000
+++ b/cocoaTouch/iPad/TeamSettingsViewController.m Fri Apr 02 22:44:14 2010 +0000
@@ -27,7 +27,7 @@
// Uncomment the following line to preserve selection between presentations.
// self.clearsSelectionOnViewWillAppear = NO;
// Uncomment the following line to display an Edit button in the navigation bar for this view controller.
- // self.navigationItem.rightBarButtonItem = self.editButtonItem;
+ self.navigationItem.rightBarButtonItem = self.editButtonItem;
}
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
@@ -114,18 +114,18 @@
#pragma mark -
#pragma mark Table view delegate
-
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
- if (childController == nil) {
- childController = [[SingleTeamViewController alloc] initWithStyle:UITableViewStyleGrouped];
+ if (1 == [indexPath section]) {
+ if (childController == nil) {
+ childController = [[SingleTeamViewController alloc] initWithStyle:UITableViewStyleGrouped];
+ }
+
+ NSInteger row = [indexPath row];
+ NSString *selectedTeam = [[list objectAtIndex:row] stringByDeletingPathExtension];
+
+ childController.teamName = selectedTeam;
+ [self.navigationController pushViewController:childController animated:YES];
}
-
- NSInteger row = [indexPath row];
- NSString *selectedTeam = [[list objectAtIndex:row] stringByDeletingPathExtension];
-
- childController.title = selectedTeam;
- [self.navigationController pushViewController:childController animated:YES];
-
}
/*