UITableViewCell에 데이터를 정렬하고 싶습니다.UITableViewCell에 데이터 정렬?
내 테이블에 이미지가 표시됩니다. 그 후의 가격은 .... 공간이 ............ 년이되어서 ..... 공간을 잃어 버렸습니다. 한 줄에. 테이블 뷰 셀.
UITableViewCell에 데이터를 정렬하고 싶습니다.UITableViewCell에 데이터 정렬?
내 테이블에 이미지가 표시됩니다. 그 후의 가격은 .... 공간이 ............ 년이되어서 ..... 공간을 잃어 버렸습니다. 한 줄에. 테이블 뷰 셀.
사용자 정의 셀의 각 하위 뷰에 대한 프레임 속성을 설정하십시오.
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];
덕분에 나를 위해 작업을 본 쉘 .... –