这个自动布局错误是什么意思?

What does this auto layout error mean?

我最近试图让我的 IOS 8 应用程序与 swift 兼容,但我已经 运行 进入一些小问题。我已经修复了其中的大部分,但我似乎无法在网络上或任何接近它的地方找到这个错误。任何人都可以解释我如何处理这个问题以及这个错误的确切含义吗?

2015-05-29 20:06:18.007 MyApp[553:607] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Auto Layout still required after sending -viewDidLayoutSubviews to the view controller. MyApp.homeInterfaceController's implementation needs to send -layoutSubviews to the view to invoke auto layout.'

您有一个名为 homeInterfaceController 的 class,实现了 viewDidLayoutSubviews。最后,尝试调用

self.view.layoutSubviews()

可能还是说的好

self.view.layoutIfNeeded()