Closed ghost closed 7 years ago
In order to help you, please fill in the PR form + repro steps. If not, I will need to close this as incomplete report.
This is a problem with iOS 11. We solved this in our project for all table- and collection view controllers with the code below. automaticallyAdjustsScrollViewInsets
is deprecated in iOS 11. I have to try the sample project before I send a PR.
if (@available(iOS 11.0, *)) {
self.tableView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
} else {
self.automaticallyAdjustsScrollViewInsets = NO;
}
@bogren i try to use code is not work.
@dzenbot @bogren Thank for help me , i can fix issues in post Use Code
-(void)viewWillDisappear:(BOOL)animated { [self.textView resignFirstResponder]; [super viewWillDisappear:animated]; if (@available(iOS 11.0, *)) { self.tableView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever; } else { self.automaticallyAdjustsScrollViewInsets = NO; } }
Good to know you were able to fix it on your end.
i use code self.navigationController.interactivePopGestureRecognizer.delegate for slide Back To main home page but It's a gap under in viewcontroller, How to fix textview?