Home > Software engineering >  0 i would like to delete a blank space when I embebbeded a TableViewCell in my ViewController
0 i would like to delete a blank space when I embebbeded a TableViewCell in my ViewController

Time:10-06

I need to delete the space between tableviewcell and the safe area to add a background color

this is what i got

this is my tableview cell and my view controllerThis. is what i want, please help

[This is what i got, i need to delete that white space 2]

CodePudding user response:

I couldn't understand if you are using Xcode 13. If it's true, you can remove the "top padding".

Try make like this to remove in a specific UITableView:

tableView.sectionHeaderTopPadding = .zero

Or make like this in AppDelegate to remove to all UITableViews:

UITableView.appearance().sectionHeaderTopPadding = .zero
  • Related