[英]TableView issue (weird Visualization)
I have a class (movieTable.m) with TableView populated with many cells. 我有一个类(movieTable.m),其中的TableView填充了许多单元格。
As i Clicked one of them, the navigation controller brings in the other scene done in the StoryBoard. 当我单击其中一个时,导航控制器会带入在StoryBoard中完成的另一个场景。
When i get back, still with Navigation Controller, i find the TableView moved little bit down. 当我回来时,仍然在导航控制器上,我发现TableView向下移动了一点。 As I debugged the Hierarcy i found that UITableViewWrapperView is scrolled down from UITableView. 在调试Hierarcy时,我发现UITableViewWrapperView从UITableView向下滚动。
Edit: The funny thing is: if i put a UiSegmentedControl in the UiView the issue disappears. 编辑: 有趣的是:如果我在UiView中放置一个UiSegmentedControl,问题就消失了。
Why this? 为什么这个? i didn't tell the code to move it. 我没有告诉代码移动它。 Maybe I'm getting wrong with the timing? 也许我在时间上错了?
so to making clear the ideas, there's two images: 为了阐明思路,有两个图像:
Hierarchy before/after changing the scene 更改场景之前/之后的层次结构
The Code if you want to see it is in this following GitHub: GitHub 如果要查看代码,请访问以下GitHub: GitHub
Thank you all for helping&hints. 谢谢大家的帮助和提示。
this worked for me 这对我有用
add 加
self.automaticallyAdjustsScrollViewInsets = NO;
to your viewDidLoad of the moveiTable.m 到moveiTable.m的viewDidLoad
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.