Q: tableView created by storyboard running appears space form the top to the first cell [duplicate]

戏子无情 提交于 2019-12-25 04:13:29

问题


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.

The issue on simulator:

The Debug View Hierarchy:

And in the storyboard i set the constraints :


回答1:


In the attribute inspector of your view controller try to disable Adjust Scroll View Inset, see below image




回答2:


if your navigation bar is translucent then you can unselect the adjust scroll view insets for your view controller in storyboard




回答3:


I think you should check your constraints




回答4:


In the attribute inspector of your view controller try to disable Extended Edges->underTopBar



来源:https://stackoverflow.com/questions/40280134/q-tableview-created-by-storyboard-running-appears-space-form-the-top-to-the-fir

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!