Search code examples
iosswiftautolayout

how to set autolayout for static table view cell?


I am a beginner, but I usually don't have a problem to set autolayout. but I am confused when trying to set autolayout for my static table view. here is the screen I want to set

enter image description here

as we can see below, there is a grey area in the bottom of my static table view, and I want to get rid of it, if the device is bigger, the grey area is also bigger.

enter image description here

I thought that I can set the table view constraint top bottom left and right to be zero to get rid of that grey area, but I can't set the value of the contraint

enter image description here

enter image description here so how to get rid of that grey area?


Solution

  • Run you app in simulator or actual device you will not see that grey area. As you are now seeing in Storyboard preview.