From 31bb72c8f40d7d3fd34d9e2c03fc8b67c1555439 Mon Sep 17 00:00:00 2001 From: CodeST <694468528@qq.com> Date: Thu, 20 Nov 2025 21:53:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8C=89=E9=92=AE=E4=B9=8B=E9=97=B4=E6=97=A0?= =?UTF-8?q?=E9=97=B4=E8=B7=9D=EF=BC=8C=E6=8C=89=E9=92=AE=E9=87=8C=E7=9A=84?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E8=AE=BE=E7=BD=AE=E9=97=B4=E8=B7=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CustomKeyboard/View/KBKeyButton.m | 4 ++-- CustomKeyboard/View/KBKeyboardView.m | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CustomKeyboard/View/KBKeyButton.m b/CustomKeyboard/View/KBKeyButton.m index 2ef4771..01e9b47 100644 --- a/CustomKeyboard/View/KBKeyButton.m +++ b/CustomKeyboard/View/KBKeyButton.m @@ -47,8 +47,8 @@ [NSLayoutConstraint activateConstraints:@[ [iv.topAnchor constraintEqualToAnchor:self.topAnchor], [iv.bottomAnchor constraintEqualToAnchor:self.bottomAnchor], - [iv.leadingAnchor constraintEqualToAnchor:self.leadingAnchor], - [iv.trailingAnchor constraintEqualToAnchor:self.trailingAnchor], + [iv.leadingAnchor constraintEqualToAnchor:self.leadingAnchor constant:2], + [iv.trailingAnchor constraintEqualToAnchor:self.trailingAnchor constant:-2], ]]; self.iconView = iv; diff --git a/CustomKeyboard/View/KBKeyboardView.m b/CustomKeyboard/View/KBKeyboardView.m index 6029806..50dbedb 100644 --- a/CustomKeyboard/View/KBKeyboardView.m +++ b/CustomKeyboard/View/KBKeyboardView.m @@ -277,7 +277,7 @@ - (void)buildRow:(UIView *)row withKeys:(NSArray *)keys edgeSpacerMultiplier:(CGFloat)edgeSpacerMultiplier { CGFloat hInset = 6; // 行左右内边距 - CGFloat spacing = 6; // 键与键之间的间距 + CGFloat spacing = 0; // 键与键之间的间距 UIView *previous = nil; UIView *leftSpacer = nil; UIView *rightSpacer = nil;