UITableViewController セル内の画像の位置を変更しようとしています。これが私のコードです:
- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath
{
UIImageView *cellImage = cell.imageView;
CGRect frame = cellImage.frame;
frame.origin.x = 4;
frame.origin.y = 2;
cell.backgroundColor = [UIColor lightGrayColor];
}
これまでのところ、機能しているのは背景色だけです。助言がありますか?ここに私が今持っているもののスクリーンショットがあります:
現在、画像は中央に配置されていますが、セルの左上に少し近づけたいと思っていました。