-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Have a navigation bar, refresh will make the first message is hidden under the navigation bar #235
Comments
I got the same problem recently. You need to add action handler in
|
|
The workaround from @sinabs makes the position of the tableView correct AFTER the pullToRefresh is triggered, but the placement beforehand is still incorrect. |
try a again this.
|
as liruqi said, I put action handler in - viewDidAppear, and it works fine~ |
this is my solution: in viewDidLoad add below codes and it woks fine if ([self respondsToSelector:@selector(automaticallyAdjustsScrollViewInsets)]) {
self.automaticallyAdjustsScrollViewInsets = NO;
UIEdgeInsets insets = self.tableView.contentInset;
insets.top = self.navigationController.navigationBar.bottom;
self.tableView.contentInset = insets;
self.tableView.scrollIndicatorInsets = insets;
} |
No description provided.
The text was updated successfully, but these errors were encountered: