我从事基于分组表视图的工作,因为我想将 NSarray 的值转换为整数以指定 numberOfRowsInSection 的部分值,但它会引发对放置以下代码的期望。
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
int sec;
if (section == 0){ sec=6; }
else if(section == 1){ sec=6; }
else if(section == 2){
sec=[[rsvn_detail objectAtIndex:0] objectForKey:@"totalrecord"];
}
return sec;
}
任何人帮助纠正它提前谢谢你的建议
问候, 萨蒂什