Last active
June 9, 2016 12:40
-
-
Save pwaldhauer/916451e08ec9f4648dc9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)viewWillLayoutSubviews { | |
[super viewWillLayoutSubviews]; | |
self.topLayoutConstraint.constant = -1 * self.topLayoutGuide.length; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Does the topLayoutConstraint regard to the container view or the child view?
I added the topLayoutConstraint outlet to the child view controller and it doesn't work for me.
How should i do it ?