ios - 横向的UITableView嵌入UITableView键盘弹出,横向UITableView向左偏移,什么原因?
高洛峰
高洛峰 2017-04-17 17:43:27
0
3
463

想通过一个横向的UITableVIew每个cell内嵌UITableVIew的方式实现网易新闻的效果,其中有个界面有个搜索框,当点击搜索框的时候会弹出键盘.但是问题发生在键盘弹出后,横向的UITableView自动向左偏移差不多一个键盘的长度,请问这种问题是什么原因造成的,有什么好的解决办法吗?


高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(3)
巴扎黑

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?

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template