首页 > 移动平台 > 详细

ios cell

时间:2015-10-21 12:16:22      阅读:326      评论:0      收藏:0      [点我收藏+]

 http://blog.csdn.net/yohunl/article/details/19619167

 

-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    NSInteger row = indexPath.row;
    static NSString *cellString = @"CommonTableViewCell";
    CommonTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellString];
    if (cell == nil) {
        NSArray *nibArr = [[NSBundle mainBundle]loadNibNamed:cellString owner:self options:nil];
        cell = (CommonTableViewCell *)[nibArr firstObject];
        [cell setValue:cellString forKey:@"reuseIdentifier"];
        cell.accessoryType = UITableViewCellAccessoryNone;
    }
    
    cell.title.text = [tempDict objectForKey:@"title"];
    cell.content.text = [tempDict objectForKey:@"content"];
    
    return cell;
}

  

 

技术分享

ios cell

原文:http://www.cnblogs.com/vokie/p/4897107.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!