Hello,
I have a UITableViewCell with an image in its imageView to the left, but I’m having problems making the image not overlap with the rounded corners of cells. The images I’m using at the moment are 41x41 pixels, and vertically fit in the cell great, but I’d like them more to the centre of the edge of the cell and the start of the text, instead of hugging the cell’s sides. At the moment, it looks like this:
But I’d rather the imageView was shifted to the right by a few pixels. I’ve attempted to modify the frame of the imageView, but it doesn’t look like I have that much access to its internal UIImageView. I realise I could create my own UITableViewCell, but I’d rather use the provided stuff if at all possible.
As seen in “Figure 1-4”, Apple appear to be able to do it.
Is there a way to do what I want to do, or am I meant to decrease the image dimensions to a certain size before it will work?
Thanks!
I have a UITableViewCell with an image in its imageView to the left, but I’m having problems making the image not overlap with the rounded corners of cells. The images I’m using at the moment are 41x41 pixels, and vertically fit in the cell great, but I’d like them more to the centre of the edge of the cell and the start of the text, instead of hugging the cell’s sides. At the moment, it looks like this:

But I’d rather the imageView was shifted to the right by a few pixels. I’ve attempted to modify the frame of the imageView, but it doesn’t look like I have that much access to its internal UIImageView. I realise I could create my own UITableViewCell, but I’d rather use the provided stuff if at all possible.
As seen in “Figure 1-4”, Apple appear to be able to do it.
Is there a way to do what I want to do, or am I meant to decrease the image dimensions to a certain size before it will work?
Thanks!