Closed 964562398 closed 6 years ago
如果键盘的高度低于搜索框的话是没问题的,但是一旦搜索框低于键盘的高度,就会出现问题,可以修改 位于ViewController中设置的高度,将高度改成比如500就不会有问题(这里使用的是iphonex) [self.testcoll.view mas_makeConstraints:^(MASConstraintMaker *make) { make.bottom.equalTo(weakself.view.mas_bottom); make.left.equalTo(weakself.view.mas_left); make.right.equalTo(weakself.view.mas_right); make.height.equalTo(@300); }];
If the height of the keyboard is lower than the search box, no problem, but once the search box is lower than the height of the keyboard, there will be problems that can be modified The height set in the ViewController file, the height will be changed to 500, for example (iphonex is used here) [self.testcoll.view mas_makeConstraints:^(MASConstraintMaker *make) { make.bottom.equalTo(weakself.view.mas_bottom); make.left.equalTo(weakself.view.mas_left); make.right.equalTo(weakself.view.mas_right); make.height.equalTo(@300); }];
I checked the demo app but it looks like your issue can't be fixed by library since it's a complex UI at the bottom part where library tries to adjust collectionView's contentInset but it leads to some UI bugs. I suggest you to disable library in this controller and handle keyboard by registering keyboard events.
hi i got Problems with UISearchBar,The UITextField also the same problem,I attached a sample project to showcase the issue: searchbartest.zip