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

Header always collapse when set ContentInset for TableView #91

Open
veila opened this issue Apr 9, 2018 · 2 comments
Open

Header always collapse when set ContentInset for TableView #91

veila opened this issue Apr 9, 2018 · 2 comments

Comments

@veila
Copy link

veila commented Apr 9, 2018

When I set self.tableView.contentInset = UIEdgeInsetsMake(70, 0, 0, 0);
The header always min height mode
Please fix this.

@gskbyte
Copy link
Owner

gskbyte commented Apr 9, 2018

Hi,

please provide some more information and screenshots on the issue, or feel free to open a pull request

@veila
Copy link
Author

veila commented Apr 11, 2018

This my logic code.
I have tableView to show data from server. When the api callback, I set contentInset for tableView
self.tableView.contentInset = UIEdgeInsetsMake(0, 0, 70, 0);
and this is error.
https://youtu.be/CE3VQxdEuNE
But if I set contentInset in ViewDidLoad it's OK.
https://youtu.be/t4DzDzewirA
Seem the header error if I set contentInset after viewdidappear.

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

2 participants