iOS:App Extension Keyboard自定義高度
阿新 • • 發佈:2019-02-02
在viewDidAppear或者WillAppear中加上上面的約束即可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];