cocoaTouch/iPad/DetailViewController.m
changeset 3253 b0b1b1310b7e
parent 3251 221c163ad5d9
equal deleted inserted replaced
3252:1550881c5bb8 3253:b0b1b1310b7e
    11 
    11 
    12 @implementation DetailViewController
    12 @implementation DetailViewController
    13 @synthesize popoverController, detailItem, controllers;
    13 @synthesize popoverController, detailItem, controllers;
    14 
    14 
    15 
    15 
    16 // Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
       
    17 - (void)viewDidLoad {
    16 - (void)viewDidLoad {
    18     self.title =@"First";
    17     self.title =@"First";
    19     NSMutableArray *array= [[NSMutableArray alloc] init];
    18     NSMutableArray *array= [[NSMutableArray alloc] init];
    20 
    19 
    21     TeamSettingsViewController *teamSettingsViewController = [[TeamSettingsViewController alloc] 
    20     TeamSettingsViewController *teamSettingsViewController = [[TeamSettingsViewController alloc] 
    22                                                               initWithStyle:UITableViewStyleGrouped];
    21                                                               initWithStyle:UITableViewStyleGrouped];
    23     teamSettingsViewController.title =NSLocalizedString(@"Teams",@"");
    22     teamSettingsViewController.title = NSLocalizedString(@"Teams",@"");
    24     [array addObject:teamSettingsViewController];
    23     [array addObject:teamSettingsViewController];
    25     [teamSettingsViewController release];
    24     [teamSettingsViewController release];
    26     
    25     
    27     self.controllers = array;
    26     self.controllers = array;
    28     [array release];
    27     [array release];