ChenYilong / CYLTabBarController

[EN]It is an iOS UI module library for adding animation to iOS tabbar items and icons with Lottie, and adding a bigger center UITabBar Item. [CN]【中国特色 TabBar】一行代码实现 Lottie 动画TabBar,支持中间带+号的TabBar样式,自带红点角标,支持动态刷新。【iOS13 & Dark Mode & iPhone XS MAX supported】
MIT License
6.91k stars 1.45k forks source link

darkmode怎么让tabbar高斯模糊边白 #394

Open ac1217 opened 5 years ago

ac1217 commented 5 years ago

enter image description here



Base Info for this issue

  1. Version:Latest Version as here
  2. Language of App :Objective-C/Swift
  3. iOS System Version:iOS12
  4. Prototype(是否是真机):YES
  5. Issue Type:Crash、Bug、Enhancement(希望能支持一个新需求)、Q-A

1. How to reproduce the problem.

2. Please help me in this way.

3. Here is a Demo.

4. Here is my Debug log


ChenYilong commented 5 years ago

你是指让tabbar边白吗?修改 shadow 值。

你有UI或图吗?贴一个。

ac1217 commented 5 years ago
E7013C05-A44E-431A-9A1D-D4C54C63C5B7

背景是这样:因为我的vc背景色是白色的,然而设置darkmode后tabbar的那块毛玻璃变黑色了,我想把塔强制设置成白色高斯模糊效果

ChenYilong commented 5 years ago

自定义背景颜色:

//MainTabBarController.m
    // [UITabBar appearance].barTintColor = [UIColor cyl_systemBackgroundColor];
    // [[UITabBar appearance] setBackgroundColor:[UIColor cyl_systemBackgroundColor]];
//MainTabBarController.m
- (void)customizeInterface {
    //    if (@available(iOS 13.0, *)) {
    //        tabBarController.overrideUserInterfaceStyle = UIUserInterfaceStyleLight;
    //    }
    //...
}
ac1217 commented 5 years ago

感谢大佬指教