iOS Resizing image view in table view


macrumors member
Original poster
Hi, I'm pretty new to Xcode, but I have a table view controller in my storyboard with a table in it. I have added an image to a cell through the inspector on the right pane.

The image has been added in the correct place to the left, but the image has sized leaving no gap, e.g. there is no space between the line divider and the bottom of the image.

I am wanting it to look a bit like the images do in the settings app, but I can find no way of resizing that image view to make this space. Basically I am wanting to make my image smaller.

I am not very good with code, and it would be great if I can do this non-programatically, but if code is required I have set up my project to use Swift.

Any help would be greatly appreciated.


macrumors demi-god
Oct 16, 2006
If it auto layout you will need to set the sell to a basic cell or you will have to add constraints to the image view. Most likely you will need a pin left, pin top, pin bottom, and some fixed width.
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.