tableView has a solution with 20 pixels above it

  • 2020-05-10 22:56:51
  • OfStack

The extra 20 pixels on tableView are due to automatic layout. Setting 1 attribute will solve the problem


self.edgesForExtendedLayout = UIRectEdgeNone;

Super simple and practical, try it


Related articles: