Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What if I replace bodyLabel with a button? #44

Open
CoderPeteRuan opened this issue Jun 27, 2017 · 0 comments
Open

What if I replace bodyLabel with a button? #44

CoderPeteRuan opened this issue Jun 27, 2017 · 0 comments

Comments

@CoderPeteRuan
Copy link

CoderPeteRuan commented Jun 27, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant