Content pushed down in a UIPageViewController with UINavigationController

后端 未结 15 642
暗喜
暗喜 2020-12-12 18:05

UPDATE 2

I\'ve been running and testing my app in the iOS Simulator using a 4-inch device. If I run using a 3.5-inch device the label doesn\'t jump.

15条回答
  •  一向
    一向 (楼主)
    2020-12-12 18:45

    this is my first time posting on stack overflow, but I have searching for a solution to this problem for over a week now.

    Here is a solution I came up with, I hope this works for anyone else with the same issue.

    I'm not sure how you are initializing your frame for your detail view controller, but I am going to assume you might use: self.view.frame.size.height;

    try using: self.view.frame.size.height -= self.navigationController.navigationBar.bounds.size.height;

    Hope this helps

提交回复
热议问题