Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有几个由模态序列链接的导航视图控制器。当我从一个视图转到另一个视图时,下一个视图似乎底部被切断了。看起来视图向下移动了导航栏的大小。我该如何解决?
在受影响的视图控制器中:
float navBarHeight = self.navigationController.navigationBar.frame.size.height; self.view.frame = CGRectMake(0, 0, self.view.width, self.view.height - navBarHeight);