私は UITableViewCell を持っていて、それを使用しています UIImageView と、UIImageView を設定したサイズ 25,25 の画像があります。問題は、セルをタップすると、画像のサイズが行の高さに合わせてサイズ変更されることです。これは私が望んでいたものではありません。25,25で固定したかったのです。これは可能ですか?これが私のコードです:
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;