Reputation: 679
I recently was trying to making my IOS 8 app built, with swift, become compatible with IOS 7 devices, but I've been running into some minor issues. I've fixed most of them, but I can't seem to find this error on the web or anything close to it. Can anyone explain how I might approach this issue and what this error exactly means?
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.'
Upvotes: 0
Views: 52
Reputation: 535606
You have a class called homeInterfaceController
with a viewDidLayoutSubviews
implementation. At the end of it, try calling
self.view.layoutSubviews()
It may be that it's better to say
self.view.layoutIfNeeded()
Upvotes: 1