
I am trying to achieve something similar to the 9gag application, where the cells automatically change depending on the size of the image. The width embraces the sides, but the height changes as necessary.
I have a shortcut consisting of a title above it, as well as a UIImageView, and below the image I have section icons, etc. I set limits for the image as a UIImageView, as well as lower icons for both leading and ending spaces. It seems that I tried every combination of the "Mode" switch of the view (for example, the fill aspect, the aspect fits), when I do the aspect, it changes the image correctly, but it adds a bunch of indentation to both the bottom and the top of the image (the screenshot is included below )
All labels and badges have corresponding restrictions (as far as I can tell)
I searched for several hours trying to find someone with a similar problem, but to no avail, I cannot find anything regarding self-calibration of cells that use images that may vary in size.
Can someone point me in the right direction or find out about a solution to my problem? All help is much appreciated, as always!
source
share