cocoaTouch/TeamConfigViewController.m
changeset 3365 37ac593e9027
parent 3364 e5403e2bf02c
child 3374 0d522416d97f
equal deleted inserted replaced
3364:e5403e2bf02c 3365:37ac593e9027
    24     [super viewDidLoad];
    24     [super viewDidLoad];
    25     
    25     
    26     CGSize screenSize = [[UIScreen mainScreen] bounds].size;
    26     CGSize screenSize = [[UIScreen mainScreen] bounds].size;
    27     self.view.frame = CGRectMake(0, 0, screenSize.height, screenSize.width - 44);
    27     self.view.frame = CGRectMake(0, 0, screenSize.height, screenSize.width - 44);
    28 }
    28 }
    29 
       
    30 
    29 
    31 -(void) viewWillAppear:(BOOL)animated {
    30 -(void) viewWillAppear:(BOOL)animated {
    32     [super viewWillAppear:animated];
    31     [super viewWillAppear:animated];
    33 
    32 
    34     unsigned int colors[6] = { 4421353, 4100897, 10632635, 16749353, 14483456, 7566195 };
    33     unsigned int colors[6] = { 4421353, 4100897, 10632635, 16749353, 14483456, 7566195 };
    48     NSMutableArray *emptyArray = [[NSMutableArray alloc] initWithObjects:nil];
    47     NSMutableArray *emptyArray = [[NSMutableArray alloc] initWithObjects:nil];
    49     self.listOfSelectedTeams = emptyArray;
    48     self.listOfSelectedTeams = emptyArray;
    50     [emptyArray release];
    49     [emptyArray release];
    51 
    50 
    52     [self.tableView reloadData];
    51     [self.tableView reloadData];
    53     NSLog(@"%@",listOfTeams);
       
    54 }
    52 }
    55 
    53 
    56 /*
    54 /*
    57 - (void)viewDidAppear:(BOOL)animated {
    55 - (void)viewDidAppear:(BOOL)animated {
    58     [super viewDidAppear:animated];
    56     [super viewDidAppear:animated];
    66 /*
    64 /*
    67 - (void)viewDidDisappear:(BOOL)animated {
    65 - (void)viewDidDisappear:(BOOL)animated {
    68     [super viewDidDisappear:animated];
    66     [super viewDidDisappear:animated];
    69 }
    67 }
    70 */
    68 */
    71 
       
    72 
    69 
    73 -(BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    70 -(BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    74     return rotationManager(interfaceOrientation);
    71     return rotationManager(interfaceOrientation);
    75 }
    72 }
    76 
    73