Skip to content

Move setup of child controllers to initView#10

Open
hannseman wants to merge 2 commits intoPluto-Y:masterfrom
hannseman:master
Open

Move setup of child controllers to initView#10
hannseman wants to merge 2 commits intoPluto-Y:masterfrom
hannseman:master

Conversation

@hannseman
Copy link
Contributor

It is too late to add child view controllers in viewWillLayoutSubviews. Stuff like topLayoutGuide on child view controllers will not be set correctly in their viewDidLoad-methods causing issues with auto layout. I've moved the setUpViewController-calls to initView and can't see any issues with having them made there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant