处理苹果bug 默认键盘颜色改为
This commit is contained in:
@@ -25,7 +25,8 @@
|
||||
|
||||
- (instancetype)initWithFrame:(CGRect)frame {
|
||||
if (self = [super initWithFrame:frame]) {
|
||||
self.backgroundColor = [KBSkinManager shared].current.keyboardBackground;
|
||||
// self.backgroundColor = [KBSkinManager shared].current.keyboardBackground;
|
||||
self.backgroundColor = [UIColor colorWithHex:0xD1D3DB];
|
||||
|
||||
// 顶部栏
|
||||
self.topBar = [[KBToolBar alloc] init];
|
||||
@@ -205,7 +206,8 @@
|
||||
- (void)kb_applyTheme {
|
||||
KBSkinManager *mgr = [KBSkinManager shared];
|
||||
BOOL hasImg = ([mgr currentBackgroundImage] != nil);
|
||||
UIColor *bg = mgr.current.keyboardBackground;
|
||||
// UIColor *bg = mgr.current.keyboardBackground;
|
||||
UIColor *bg = [UIColor colorWithHex:0xD1D3DB];
|
||||
self.backgroundColor = hasImg ? [UIColor clearColor] : bg;
|
||||
self.keyboardView.backgroundColor = hasImg ? [UIColor clearColor] : bg;
|
||||
if ([self.topBar respondsToSelector:@selector(kb_applyTheme)]) {
|
||||
|
||||
Reference in New Issue
Block a user