그룹화 된 셀이있는 테이블 뷰가 있습니다. 이 셀 중 하나에 이미지가 포함되기를 원합니다. 여기에 이미지를 삽입하고 셀에 맞게 만들어 내 코드입니다 :tableViewCell에 이미지를 맞출 수 없습니다.
logoCell = [tableView dequeueReusableCellWithIdentifier:LogoCellIdentifier];
if (logoCell == nil) {
logoCell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:LogoCellIdentifier];
}
UIImageView *imgView=[[UIImageView alloc] initWithFrame:CGRectMake(0, 0, logoCell.frame.size.width, 80)];
[imgView setImage:image];
[logoCell.contentView addSubview:imgView];
을하지만있는 tableView가 표시 될 때 내 이미지는 셀의 폭보다 크다. 어떻게하면 세포에 맞출 수 있습니까?
감사합니다. 정확히 내가 원하는 것입니다. – louftansa