3

I have a Collection View Controller inside a Navigation Controller with a Toolbar, the problem is that my Toolbar is floating. It looks like this: iPad screen

And the Storyboard (I've added the Toolbar checking "Show Toolbar" in Navigation Controller Attributes Inspector): Xcode screen

As you can see I have a Tab Bar Controller, then a Split View Controller, and in the Detail View Controller I have the Collection View Controller inside a Navigation Controller that I show programmatically.

alessionossa
  • 923
  • 2
  • 15
  • 41

2 Answers2

0

Try to add this method in your Detail View Controller

- (UIRectEdge)edgesForExtendedLayout {
    return UIRectEdgeAll;
}
Liolik
  • 791
  • 6
  • 12
-2

Your toolbar constraints might be incorrect or you maybe missing a constraint.

iOS is really picky and it's hard sometimes to get the constraints just right.

Nathanael Carper
  • 302
  • 3
  • 17