I have a Table View Cell
, and all that is in it is an ImageView
.
How would I get the Table View Cell size to change dynamically with the Image (sizes) I get from Instagram's API?
I'm having a hard time solving, because there are essentially two variables I'm solving for:
- Variable Size of Image from Instagram API (standard res always seem to be at least 600+ so will always be able to stretch from left to right no matter what phone size)
- Variable iPhone Size (iPhone 6, 6 Plus, etc)
I've tried pinning all sides, that didn't work. I've tried pinning left and right along with add constraints Bottom Space to Container Margin and Top Space to Container Margin, that didn't work.
But I can't get it right. I'm sure its something small I'm missing. Any help would be appreciated. Thanks!
I'm using Xcode 6 and iOS 8. I'm using Storyboard. Only Portrait orientation.