Skip to content

What if I replace bodyLabel with a button? #44

@CoderPeteRuan

Description

@CoderPeteRuan

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions