UILabel을 내 tableview의 컨텐츠보기로 추가했습니다. 스크롤시 UILabel의 텍스트가 겹칩니다. 아래는 코드입니다.UITableViewCell - 스크롤 할 때 ContentView가 겹치다
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
[self.chatTableView registerClass:[UITableViewCell class] forCellReuseIdentifier:@"Group"];
static NSString *CellIdentifier = @"Group";
UITableViewCell *cell = [self.chatTableView dequeueReusableCellWithIdentifier:CellIdentifier
forIndexPath:indexPath];
if (cell == nil)
{
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle
reuseIdentifier:CellIdentifier];
}
cell.textLabel.text = self.latestTrimText;
UILabel *cellLabel = [[UILabel alloc]init];
cellLabel.text = self.dateOfLatestTrim;
cellLabel.frame = CGRectMake(15, 0, 150, 30);
[cell.contentView addSubview:cellLabel];
return cell;
}
그때 UITableViewCell *cell = [self.chatTableView dequeueReusableCellWithIdentifier:nil];
그러나 변경하여이 문제를 해결할 수는있는 tableview의 스크롤이 부드럽게되지 않습니다. 문제를 해결할 다른 방법이 있습니까?