No navigation bar table view cell at the very top of the screen

No navigation bar table view cell at the very top of the screen

A navigation bar appeared, but the table view does not move down, so the navigation bar crawls onto the tableViwCell and overlaps the key, you cannot read the contents

A navigation bar appeared, but the table view does not move down, so the navigation bar crawls onto the tableViwCell and overlaps the key, you cannot read the contents

  • How do you have a tableview along the Y axis adjusted? Sometimes there is a problem due to constraints, try changing the bindings in height, for example, equal heigh to top and bottom. - Nerevarys

1 answer 1

Add it to the controller

- (void)viewDidLoad { [super viewDidLoad]; self.edgesForExtendedLayout = UIRectEdgeNone; } 
  • Well, nothing changes anything. self.edgesForExtendedLayout = UIRectEdge.None - Anatoly
  • Did you run the program? Or just watched in the builder? - Valentine
  • watched in simulator - Anatoly
  • through what navigationBar set? - Valentine