CYLTabBarController icon indicating copy to clipboard operation
CYLTabBarController copied to clipboard

[bug]:CYLTabBarItemImage 和 CYLTabBarItemSelectedImage 指定的图片, 无法在 darkMode 下显示正确的样式

Open HouShiqi opened this issue 5 years ago • 1 comments

// 如下方式指定的图片在切换 darkMode 的时候, 无法变更样式
NSDictionary *secondTabBarItemsAttributes = @{
                                                  CYLTabBarItemTitle : @"鱼塘",
                                                  CYLTabBarItemImage : [UIImage imageNamed:@"fishpond_normal"],
                                                  CYLTabBarItemSelectedImage : @"fishpond_highlight",
                                                  CYLTabBarItemTitlePositionAdjustment: [NSValue valueWithUIOffset:UIOffsetMake(secondXOffset, -3.5)],
                                                  CYLTabBarLottieURL : [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"tab_search_animate" ofType:@"json"]],
//                                                  CYLTabBarLottieSize: [NSValue valueWithCGSize:CGSizeMake(33, 33)]
                                                  };

HouShiqi avatar Sep 26 '19 12:09 HouShiqi

你预期变成什么样式?

ChenYilong avatar May 08 '20 06:05 ChenYilong