TableViewCellWithAutoLayoutiOS8 icon indicating copy to clipboard operation
TableViewCellWithAutoLayoutiOS8 copied to clipboard

What if I replace bodyLabel with a button?

Open CoderPeteRuan opened this issue 8 years ago • 0 comments

I've turned bodyLabel's class UILabel into UIButton(As you can see in pic1 ~ pic3). As you know, UIButton also has its intrinsic content size (just like UILabel). I just want to have the cell's subviews "exert pressure" and make the content view expand to fit them. But the cell height became same and, of course, went wrong(As you can see in pic4 and pic5). Can anybody tell me why and what should I do to solve this problem? pic1 1

pic2 2

pic3 3

pic4 5

pic5 6

pic6 7

CoderPeteRuan avatar Jun 27 '17 05:06 CoderPeteRuan