0
저는 UITableViewCell을 가지고 있고 UIImageView를 사용하고 있으며 UIImageView를 설정 한 크기가 25,25 인 이미지가 있습니다. 문제는 셀을 탭하면 이미지 크기가 행 높이로 조정된다는 점입니다. 이는 내가 원한 것이 아닙니다. 나는 그것이 25,25에 고치기를 원했다. 이것이 가능한가? 여기에 내 코드입니다 :UITableViewCell의 UIImageView가 행의 높이를 조절합니다.
cell.imageView.bounds = CGRectMake(cell.imageView.origin.x, cell.imageView.origin.y, 25, 25);
cell.imageView.frame = cell.imageView.bounds;
cell.imageView.autoresizingMask = UIViewAutoresizingNone;
cell.imageView.clipsToBounds = YES;
cell.imageView.layer.borderWidth = 0;
cell.imageView.layer.borderColor = [UIColor blackColor].CGColor;
에있는 UIImageView를 추가해야? – adit
사용자 정의 UITableViewCell, http://cocoawithlove.com/2009/04/easy-custom-uitableview-drawing을 사용해야하는 경우 UIImageView를 기본 tableViewCell에 통합하여 크기를 조정할 수 있다고 생각하지 않습니다. html은 당신을 도울 수있다. – Solidus