une view contenant plusieurs UITableView

bat'houla

Membre enregistré
16 Mars 2012
2
0
Bonjour,
je suis débutante en programmation, je dois afficher un tableau a 5 colonnes dans une view j'ai tenter avec UITableView mais le programme m'affiche un tableau a une seul colonne
icon_cry.gif

NSMutableArray *Listpresence;
-(void) viewDidload{
[Listpresence addObject:mad:"lili"];
[Listpresence addObject:mad:"fifi"] ;
[Listpresence addObject:mad:"koukou"];
[super viewDidLoad];
//view dans laquelle j'ai mis un UITableView a l'aide d'interface bluider
}

-(NSInteger)tableViewUITableView *) tableview numbreOfRowsInSectionNSInteger)section {return
[Listpresence count];
}
-(NSInteger)numbreOfSectionInTableViewUITableView *) tableview {
return 5;
}

Concernant la configuration de Cell
NSString *cellValue =
[Listpresence objectAtIndex:indexPath.row];
cell.textLabel.text=cellValue;
return cell;
Merci d'avance
 
j'ai construis une vue contenant 4 table view
je sais pas comment faire pour les remplir


dans .h


NSMutableArray*List;
NSMutableArray *List2;
NSMutableArray *List3;


dans .m
-(void)viewDidLoad{
List=[[NSMutableArray alloc] init];
List addObject:mad:"lili"];
List addObject:mad:"fifi"];




List2=[[NSMutableArray alloc] init];
List2 addObject:mad:"koko"];
List2 addObject:mad:"fofo"];


List3=[[NSMutableArray alloc] init];
List3 addObject:mad:"mimi"];
List3 addObject:mad:"kiki"];


[super viewDidLoad];


}

Merci d'avanse