1

When going from one view to another, that uses a toolbar over the navigation bar, then the navigation bar jumps as seen in the image. Only happens in iPhone X

enter image description here

I have already added:

[self.tableView setContentInsetAdjustmentBehavior:UIScrollViewContentInsetAdjustmentNever];

But that did not help on this issue.

I am not using Storyboards

Christoffer
  • 7,436
  • 4
  • 40
  • 42

1 Answers1

1

I've had a similar behaviour occur to me when the view controller I was trying to push was not checked for "Use Safe Area Layout Guides". My experiences seems to indicate Apple may change the position of the bottom/top layout guides at runtime if it detects the navigation stacks is using Safe Area layout guides; unfortunately it does produces a virtual artifact.

If you are not using storyboards, you can do it in code. I recommend this Safe Area Layout Guide tutorial for more information on the topic.

Xcode screenshot showing the Safe Area Layout Guides option

ekscrypto
  • 3,718
  • 1
  • 24
  • 38