Skip to content

Instantly share code, notes, and snippets.

@kylehowells
Created September 28, 2014 17:10
Show Gist options
  • Save kylehowells/ca314af0858844be9ff4 to your computer and use it in GitHub Desktop.
Save kylehowells/ca314af0858844be9ff4 to your computer and use it in GitHub Desktop.
Resize a keyboard extension
-(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