Resizing image view in table view

Discussion in 'iOS Programming' started by njharris97, May 27, 2015.

  1. njharris97 macrumors member

    #1
    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.
     
  2. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #2
    Are you using Auto Layout or struts-and-springs?
     
  3. njharris97 thread starter macrumors member

    #3
    -

    Thank you for replying so quickly. I have absolutely no idea, I think auto layout, it's just what ever Xcode puts as standard.
     
  4. KoolStar macrumors demi-god

    KoolStar

    Joined:
    Oct 16, 2006
    Location:
    Kentucky
    #4
    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.
     

Share This Page