Ios Tableview单元格不显示数组中的单元格信息
我的项目中有多个表,但我陷入了一种情况。 从我的一个数组中,我无法获得输出,并且我的tableview显示为空。 帮帮我 谢谢Ios Tableview单元格不显示数组中的单元格信息,ios,iphone,uitableview,Ios,Iphone,Uitableview,我的项目中有多个表,但我陷入了一种情况。 从我的一个数组中,我无法获得输出,并且我的tableview显示为空。 帮帮我 谢谢 if (tableView==tableSide) { static NSString *CellIdentifier = @"Cell1"; UITableViewCell *cell1 = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if(cell1 == n
if (tableView==tableSide)
{
static NSString *CellIdentifier = @"Cell1";
UITableViewCell *cell1 = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if(cell1 == nil)
{
cell1 = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
}
cell1.backgroundColor=[UIColor clearColor];
cell1.textLabel.textColor=[UIColor redColor];
cell1.textLabel.text=[arrSideBarMenu objectAtIndex:indexPath.row];
cell1.selectionStyle = UITableViewCellSelectionStyleBlue;
return cell1;
}
你的菜单是什么?如何分配?能否检查您是否正在获取arrSideBarMenu的值?检查您是否正在设置tableview数据源,以及是否在故事板中检查您的单元标识符名称。