在带有不透明导航栏的导航 Controller 中带有 scrollView 的弹出 View Controller 导致在转换期间出现奇怪的内容动画
在过渡过程中内容会低于其原始位置,交互式弹出将使这一点非常明显。
启用安全区域并不能解决这个问题。
最佳答案
我认为这是 iOS 11 中的一个错误。 这是一个关于它的雷达: http://openradar.appspot.com/34465226
您可以通过选中 Storyboard中的 Extend Edges: Under Opaque Bars 框或在代码中手动设置 [self setExtendedLayoutIncludesOpaqueBars:YES] 来解决此问题。
关于iOS 11 : Pop view controller with scrollView inside navigation controller with opaque navbar result in weird content animation during transition,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46397290/