This commit is contained in:
2025-11-21 20:59:39 +08:00
parent fd7b3a7f75
commit fd35c5c993
3 changed files with 20 additions and 4 deletions

View File

@@ -89,10 +89,10 @@ static void KBSkinInstallNotificationCallback(CFNotificationCenterRef center,
CGFloat keyboardHeight = KEYBOARDHEIGHT; // 250
CGFloat screenWidth = [UIScreen mainScreen].bounds.size.width;
NSLayoutConstraint *h = [self.view.heightAnchor constraintEqualToConstant:keyboardHeight];
NSLayoutConstraint *w = [self.view.widthAnchor constraintEqualToConstant:screenWidth];
h.priority = UILayoutPriorityRequired;
w.priority = UILayoutPriorityRequired;
[NSLayoutConstraint activateConstraints:@[h, w]];