Q:storyboard运行创建的tableView从顶部到第一个单元格出现空格 [英] Q: tableView created by storyboard running appears space form the top to the first cell
本文介绍了Q:storyboard运行创建的tableView从顶部到第一个单元格出现空格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在storyboard
中创建tableView
,并设置约束以到达周围.但是在模拟器上运行时,从顶部到第一个单元格会出现一些空间.
Create the tableView
in the storyboard
, and set the constraints to arrive the all around.
But when running on simulator, there appear some space form the top to the first cell.
模拟器问题:
调试视图层次结构:
在故事板中我设置了约束:
And in the storyboard i set the constraints :
推荐答案
在视图控制器的属性检查器中尝试禁用调整滚动视图插入,见下图
In the attribute inspector of your view controller try to disable Adjust Scroll View Inset, see below image
这篇关于Q:storyboard运行创建的tableView从顶部到第一个单元格出现空格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文