您的位置:首页 > 产品设计 > UI/UE

UITableView&UITableViewCell系列

2014-04-23 21:44 239 查看
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全面解析

/content/3845922.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: