解决方案 »

  1.   

    这个重用机制怎么写呢,不让他复用第一个cell
      

  2.   


    可以设置cell1(第一行)和cell2(第二行以后)的identifier,每次用的时候,使用第二行
     cell  = [tableView dequeueReusableCellWithIdentifier:@"saleCell" forIndexPath:indexPath];
    ok
      

  3.   

    @u012605210   你是直接用xib做的吗?
      

  4.   

    //一般的cell
    NSString *cellIdentifier =  @"Cell";
        UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifier];
        if (indexPath.row == 0) {
                 cell = [[UITableViewCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"customCell"];//自定义cell
        }
        else{
            if (cell == nil) {
                cell = [[UITableViewCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellIdentifier];
            }
        }
      

  5.   

    可以看一下这里http://blog.csdn.net/chaoyuan899/article/details/13291637
      

  6.   

    NSString *cellName=@"myCell";
    UINib *nib=[UINib nibWithNibName:cellName bundle:nil];
    [self.tableView registerNib:forCellReuseIdentifier:@"cellIdentifier"];