UITableView&UITableViewCell系列

UITableView 系列之自定义 UITableViewCell

关于UITableView在ios6.0中的新用法

iOS学习之UITableView中Cell的操作

IOS高访新浪微博界面(讲解如何自定义UITableViewCell,处理@#链接 特殊字符)

代码实现UITableViewCell表视图单元定制

PureCode--iOS--自定义UITableViewCell(含疑问)

iphone 基于纯代码的方式实现界面转换

 

自定义UITableViewCell  by魏先生

 

 

IOS TableView的Cell高度自适应,UILabel自动换行适应

IOS开发之纯代码界面--基本控件使用篇  

http://zmhot88.blog.51cto.com/1338337/1358996

 

详解iPhone Tableview分批显示数据 实现点击加载更多

 

http://blog.sina.com.cn/s/blog_a8e6666b010157x3.html

 

Load  more

http://stackoverflow.com/questions/7417629/implementing-load-more-in-uitableview-in-ios-sdk

 

//tableview背景色

iOS 7 UITableview 在Plain模式下 设置背景颜色无效

修改UITableViewStyleGrouped形式的tableview的背景色

tableview.backgroundView=[[UIView alloc] init];//改变表的背景视图

tableview.backgroundColor = [UIColor orangeColor];添加颜色

 

iOS开发笔记--cell最右边显示箭头,字符,自定义分割线

 

// 自定义 cell
- (UITableViewCell *) tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {

    NSString *identifier = @"Cell";
    
    UITableViewCell *cell = [tableView  dequeueReusableCellWithIdentifier:identifier];

    if (cell == nil) {
        
        cell = [[[UITableViewCell  alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:identifier] autorelease] ;
        
        //自定义 cell的背景
        UIImageView *backImageView = [[UIImageView  alloc] initWithFrame:CGRectMake(0, 0, cell.width, cell.height)];
        [backImageView setImage:[UIImage imageNamed:@"tck_on3.png"]];
        backImageView.tag = 201;
        
        cell.selectedBackgroundView = backImageView;
        [backImageView  release];
        
        // 自定义评分Label
        UILabel *RatingLabel = [[UILabel  alloc] initWithFrame:CGRectMake(160, 0, 40, cell.height)];
        RatingLabel.text = @"";
        RatingLabel.textColor = [UIColor  whiteColor];
        RatingLabel.backgroundColor = [UIColor  clearColor];
        RatingLabel.font = [UIFont systemFontOfSize:14];
        RatingLabel.tag = 202;
        
        [cell.contentView  addSubview:RatingLabel];
        [RatingLabel  release];
        
    }
    UILabel *label = (UILabel *) [self  viewWithTag:202];
    label.text = [[self.data  objectAtIndex:indexPath.row]  objectForKey:@"rating"];
    
    cell.textLabel.text = [[self.data  objectAtIndex:indexPath.row]  objectForKey:@"title"];
    cell.textLabel.textColor = [UIColor  whiteColor];
    cell.textLabel.font = [UIFont systemFontOfSize:14];
    cell.textLabel.highlightedTextColor = [UIColor blackColor];
    
    return cell;
}

  

 http://blog.unieagle.net/2013/07/20/%E3%80%90%E8%BD%AC%E3%80%91ios%E5%BC%80%E5%8F%91%E4%B8%AD%E7%9A%84uitableview%E7%BC%96%E8%BE%91%E6%A8%A1%E5%BC%8F/

 

iOS开发系列--UITableView全面解析

http://www.cnblogs.com/kenshincui/p/3931948.html

 

 

转载于:https://www.cnblogs.com/hl666/p/3684002.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值