I was following this tutorial on how to create UITableViewCell
with UILabel
inside fit the height of it's content and it's working great!
I have just one little problem: I want to make a default minimum size for the UITableViewCell
that will not let the Cell
to get resized if the content height is smaller than this minimum size.
How could I do that?
Thanks in advance.
You can set a minimum size by setting the constraint's relation
to be Greater Than or Equal
.
Chances are your height constraint is just Equal
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.