I have a tableView
with three sections. Initially there was a issue of cell content duplication.
It was solved by setting the reuse identifier of the cell to nil
. After that, a black bar/color occurred at the position of first cell in the 3rd section, like on this screen shots.
This was my previous issue.And changed the cell implementation to,
static NSString *cellIdentifier=[NSString stringWithFormat:@"Cell%ld%ld",(long)indexPath.section,(long)indexPath.row];
UITableViewCell *cell=[tableView dequeueReusableCellWithIdentifier:cellIdentifier];;
if(cell==nil){
cell=[[UITableViewCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellIdentifier];
}
Does anyone know what's the reason? Any help appreciated.