标签:
拖拉控件TableView关系如下:

并且要在cellForRow方法里面添加如下代码:
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    FirstTableViewCell *cell = (FirstTableViewCell *)[tableView dequeueReusableCellWithIdentifier:@"FirstCellReuse"];
    if (cell == nil) {
        NSArray * nib = [[NSBundle mainBundle]loadNibNamed:@"FirstTableViewCell" owner:self options:nil];
        cell = [nib objectAtIndex:0];
    }
    cell.nameLabel.text = self.array[indexPath.row];
    return cell;
}
再实现它的delegate和datasource就可以了
标签:
原文地址:http://www.cnblogs.com/songtingting/p/5038026.html