Created
September 28, 2014 17:10
-
-
Save kylehowells/ca314af0858844be9ff4 to your computer and use it in GitHub Desktop.
Resize a keyboard extension
This file contains 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)viewDidAppear:(BOOL)animated{ | |
CGFloat _expandedHeight = 500; | |
NSLayoutConstraint *_heightConstraint = | |
[NSLayoutConstraint constraintWithItem: self.view | |
attribute: NSLayoutAttributeHeight | |
relatedBy: NSLayoutRelationEqual | |
toItem: nil | |
attribute: NSLayoutAttributeNotAnAttribute | |
multiplier: 0.0 constant: _expandedHeight]; | |
[self.view addConstraint: _heightConstraint]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment