我想對齊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. UITableViewCell中的文本對齊
- 2. iOS - UITableViewCell文本對齊
- 3. 在UITableViewCell中對齊UIImage
- 4. UITableViewCell UILabel多行對齊
- 5. 數據對齊
- 6. 對齊堆棧上的數據(C++)
- 7. 左對齊和右對齊文本在UITableViewCell的detailTextLabel
- 8. ImageView的垂直對齊方式 - UITableViewCell的
- 9. 垂直對齊UITableViewCell中的UITextlabel
- 10. UITableViewCell textLabel在刪除separatorInset後的對齊
- 11. 不同的UITableViewCell類型對齊
- 12. UITableViewCell中元素的垂直對齊
- 13. 強制UITableViewCell保持對象在方向更改上右對齊
- 14. Excel數據對齊
- 15. 混亂上ARM9數據對齊
- 16. 對齊表中的數據
- 17. QImage的數據對齊
- 18. 自定義UITableViewCell - UILabel未正確對齊
- 19. uitableviewcell顯示指示accessoryview對齊
- 20. IOS 8接口生成器UITableViewCell對齊
- 21. UITableViewCell UILabel垂直對齊似乎關閉
- 22. UITableViewCell與圖像文字對齊
- 23. UITableViewCell對齊所有子視圖
- 24. 處理UITableViewCell中的數據對象
- 25. Xcode - 更改UITableViewCell上的標籤數據
- 26. 對齊日常數據
- 27. 在python中對齊數據
- 28. UIlabel數據不對齊?
- 29. Lua用戶數據對齊
- 30. read.table與「右對齊」數據
由於伯恩的工作對我來說.... – 2010-11-22 07:03:06