想通过一个横向的UITableVIew每个cell内嵌UITableVIew的方式实现网易新闻的效果,其中有个界面有个搜索框,当点击搜索框的时候会弹出键盘.但是问题发生在键盘弹出后,横向的UITableView自动向左偏移差不多一个键盘的长度,请问这种问题是什么原因造成的,有什么好的解决办法吗?
拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...
I have never used a horizontal UITableView. To make this kind of interface, I usually write a scrollView and multiple UITableViews...
Let’s try it firstself.automaticallyAdjustsScrollViewInsets, okay?
self.automaticallyAdjustsScrollViewInsets
Then, have you used something like IQKeyboardManager to automatically manage the keyboard...
collectionView + tableView.
Because when using UITableView, the input box will automatically scroll to the middle of the screen. I have not tried the solution. It should not be as complicated as mentioned above.
I have never used a horizontal UITableView. To make this kind of interface, I usually write a scrollView and multiple UITableViews...
Let’s try it first
self.automaticallyAdjustsScrollViewInsets
, okay?Then, have you used something like IQKeyboardManager to automatically manage the keyboard...
collectionView + tableView.
Because when using UITableView, the input box will automatically scroll to the middle of the screen. I have not tried the solution. It should not be as complicated as mentioned above.