我想对齐UITableViewCell上的数据我的表显示图像。 之后,价格....空间............年.....空间.........模型.....空间。 在一行中。在tableviewcell中。对齐UITableViewCell上的数据?
0
A
回答
0
为您的自定义单元格中的每个子视图设置框架属性。
0
cell.textLabel.text=[NSString stringWithFormat:@"year: %@ price: %@",[yearList objectAtIndex:indexPath.row],[priceList objectAtIndex:indexPath.row]];
0
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellIdentifier] autorelease];
// CGRect frame;
// frame.origin.x=10;
// frame.origin.y=5;
// frame.size.height=20;
// frame.size.width=100;
// frame.origin.x+=90;
//
// priceLabel=[[UILabel alloc]initWithFrame:frame];
// priceLabel.textColor = [UIColor orangeColor];
// priceLabel.tag=PriceTag;
// [cell.contentView addSubview:priceLabel];
// [priceLabel release];
// frame.origin.x+50;
// yearLabel=[[UILabel alloc]initWithFrame:frame];
// yearLabel.tag=YearTag;
// [cell.contentView addSubview:yearLabel];
// [yearLabel release];
//}
// UILabel *priceLabel1=(UILabel*)[cell.contentView viewWithTag:PriceTag];
// priceLabel1.text=[priceList objectAtIndex:indexPath.row];
相关问题
- 1. 数据对齐
- 2. 对齐堆栈上的数据(C++)
- 3. ImageView的垂直对齐方式 - UITableViewCell的
- 4. UITableViewCell textLabel在删除separatorInset后的对齐
- 5. 不同的UITableViewCell类型对齐
- 6. 强制UITableViewCell保持对象在方向更改上右对齐
- 7. Excel数据对齐
- 8. 混乱上ARM9数据对齐
- 9. QImage的数据对齐
- 10. 对齐表中的数据
- 11. UITableViewCell对齐所有子视图
- 12. UITableViewCell UILabel垂直对齐似乎关闭
- 13. IOS 8接口生成器UITableViewCell对齐
- 14. uitableviewcell显示指示accessoryview对齐
- 15. 处理UITableViewCell中的数据对象
- 16. 数据结构对齐
- 17. 在python中对齐数据
- 18. CPU和数据对齐
- 19. 对齐日常数据
- 20. 亲子数据对齐
- 21. 读位对齐数据
- 22. 数据不显示在UITableViewCell上Swift
- 23. 存储指令中的数据对齐
- 24. 单数据光柱在HighCharts的对齐
- 25. 对齐缺失值的数据帧
- 26. Html.Grid右对齐列中的数据
- 27. 加载缓存时的数据对齐
- 28. DT数据表中的列对齐
- 29. 未对齐数据的性能损失
- 30. 自动对齐Xtext中的数据
由于伯恩的工作对我来说.... – 2010-11-22 07:03:06