aircraft aircraft - 1 month ago 7
iOS Question

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

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:

on the simulator

The Debug View Hierarchy:

Debug View Hierarchy

And in the storyboard i set the constraints :

constraints

Answer

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

enter image description here

Comments