Je construis UIView avec peu d'étiquettes et un UITableview
. le problème est que quand je charge la vue la méthode - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
jamais appelée. le code:cellForRowAtIndexPath ne s'appelle pas
-(void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
m_ShopSalesTable =[[UITableView alloc]init]; //this is the UITableView
m_ShopSalesTable.delegate = self;
m_ShopSalesTable.dataSource = self;
[self.view addSubview:m_ShopSalesTable];
[m_ShopSalesTable reloadData];
}
j'ai mis le UITableViewDelegate
, UITableViewDataSource
> dans la déclaration de la classe mais rien aidé.
yes la méthode - (NSInteger) tableView: (UITableView *) tableView numéroOfRowsInSection: section (NSInteger) { return [m_CurrShop.m_SalesList count]; } se appelle et renvoie 3. – Amir
Et le numberOfSectionsInTable: retourne quoi? – Kalle