3

I added auto layout to my cell and in both heightForRowAtIndexPath and estimatedHeightForRowAtIndexPath i have this:

return UITableViewAutomaticDimension;

The cell gets even bigger than what it is in storyboard and the UIImageView gets extremely tall like this:

As you can see, the red is the extra space being created and is the background color of UIImageView

As you can see, the red is the extra space being created and is the background color of UIImageView

farhan
  • 233
  • 1
  • 13
  • It seems your image size is big. Can you provide link of this image? so i can sort out your problem. – Abhijit May 27 '16 at 08:29
  • hmm. i dont have a link to it. – farhan May 27 '16 at 09:46
  • @Abhijit with any image i have it will have that border on top and bottom and really stretch it, The stretching height ends up bigger than whats on the storyboard – farhan May 27 '16 at 09:56

1 Answers1

0

just set constraints from Xcode "pin" tab

Moti Hula
  • 3
  • 4