cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"cell"];
는 가능성이있을 수 있음을 귀하의 스타일은 UITableViewCellStyleDefault
또는 UITableViewCellStyleValue1 or
UITableViewCellStyleValue2 or
UITableViewCellStyleSubtitle` 중 하나입니다.
어떤 스타일의 당신이 사용하는 것보다 자신의 레이블을 추가하는 경우 사용중인 현재 : textLabel
또는 UITableViewCell
객체의 detailTextLabel
입니다 기본 레이블을 사용하여
UILabel *lbl = [[UILabel alloc] initWithFrame:CGRectMake(10,10,100,25)];
lbl.text = @"your Text";
[lbl setTextColor:[UIColor greenColor]];
을하고 당신이 당신의 자신의 레이블을 추가하지 않는 경우 :
를
UILabel *lbl = [[UILabel alloc] initWithFrame:CGRectMake(10,10,100,25)];
lbl.text = @"your Text";
[lbl setTextColor:[UIColor greenColor]];
: 당신처럼 서브 뷰에서 라벨을 추가하는 경우
[cell.textLabel setTextColor:[UIColor greenColor]];
[cell.detailTextLabel setTextColor:[UIColor greenColor]];
greenColor
을 원하는 색상으로 바꿀 수 있습니다. 호프가 도움이 되길 바랍니다.
cellForRowAtIndexPath에 작성한 코드를 넣으시겠습니까? –
그리고 initwithStyle의 코드를 입력하십시오. 스토리 보드 및 프로토 타입 셀을 사용하고 있는지 여부도 알려주십시오. – jrturton