hello all,
I build UIView with few labels and one UITableview. the problem is that when i load the view the method - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
never get called.
the code:
-(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];
}
i have put the UITableViewDelegate ,UITableViewDataSource> in the declaration of the class but nothing helped.