i did this but still if i scroll table with force data are shuffling
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:CellIdentifier] autorelease];
//
//cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellIdentifier] autorelease];
cell.selectionStyle = UITableViewCellSelectionStyleNone;
XMLAppDelegate *appDelegate=(XMLAppDelegate*)[UIApplication sharedApplication].delegate;
DetailXml *aDetail=[appDelegate.dxml objectAtIndex:indexPath.row];
switch(indexPath.section)
{
case 0:
NSLog(@" cell 1");
{
CGRect frame;
frame.origin.x = 70;
frame.origin.y = 15;
frame.size.height = 25;
frame.size.width = 320;
cLabel = [[UILabel alloc] initWithFrame:frame];
cLabel.textColor = [UIColor blackColor];
//[label setFont:[UIFont fontWithName:@"Helvetica-Bold" size:16]];
[cLabel setFont:[UIFont fontWithName:@"Verdana-Italic" size:14]];
cLabel.tag = Ca;
[cell.contentView addSubview:cLabel];
[cLabel release];
cLabel.backgroundColor = [UIColor clearColor];
cLabel.text = [NSString stringWithFormat:@"%@", aDetail.telnumber];
cLabel.backgroundColor = [UIColor clearColor];
cell.backgroundView = [[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"r1.png"]] autorelease];
counte=1;
}
break;
case 1:
{NSLog(@" cell 2");
//counte=0;
cell.backgroundView = [[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"n1.png"]] autorelease];
}
break;