私はUITableViewCellのデータを整列したいUITableViewCellでデータを整列しますか?
私のテーブルには画像が表示されます。 そのあとの値段で宇宙を築いていきます。 1行で入力します。テーブルビューセルで。
私はUITableViewCellのデータを整列したいUITableViewCellでデータを整列しますか?
私のテーブルには画像が表示されます。 そのあとの値段で宇宙を築いていきます。 1行で入力します。テーブルビューセルで。
カスタムセル内の各サブビューのフレームプロパティを設定します。
cell.textLabel.text=[NSString stringWithFormat:@"year: %@ price: %@",[yearList objectAtIndex:indexPath.row],[priceList objectAtIndex:indexPath.row]];
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];
おかげで私のためにその仕事をボーン.... –