Displaying a variable amount of text in a tableViewCell is easy enough. Set the
.automaticDimension, set top and bottom constraints, number of lines to
0, and you’re done.
Trying to incorporate variable text and variable image height will probably test your patience. :)
If you’re like me, you’ll fight with auto-layout for a while, maybe refer to Stack or Medium for some pointers. You might even arrive at something that appears to get it all working correctly. Then you start scrolling, and your UI goes to hell.
Sound familiar? Read on. (more…)