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

[bug]: CYLTabBar overrides the -traitCollection getter, which is not supported. #546

Open shuai265 opened 3 years ago

shuai265 commented 3 years ago

Base Info for this issue

  1. Version:1.24.2
  2. Language of App :Objective-C
  3. iOS System Version:iOS9, iOS14
  4. Prototype(是否是真机):YES
  5. Issue Type:Bug
  6. Xcode version: Version 12.3 (12C33)

1. How to reproduce the problem.

  1. use CYLTabBarController Demo project build & run
  2. select first or last tabBarItem

2. Please help me in this way.

remove not supported methods

3. Here is a Demo.

CYLTabBarController Demo

4. Here is my Debug log

[TraitCollection] Class CYLTabBar overrides the -traitCollection getter, which is not supported. If you're trying to override traits, you must use the appropriate API.

[Assert] A trait environment returned a trait collection with unspecified values for traits that are not allowed to be unspecified. This is a serious application bug and will cause undefined behavior. This issue may be caused by your class overriding the traitCollection property getter, which is not supported. Make sure to use the appropriate API if you are trying to override traits. Trait Environment: <UITabBarButtonLabel: 0x10a81f810; frame = (25 34.3333; 20.6667 12); text = 'Home'; opaque = NO; userInteractionEnabled = NO; layer = <_UILabelLayer: 0x280fe6710>>; Trait Collection: <UITraitCollection: 0x2817f3dc0; HorizontalSizeClass = Compact, PreferredContentSizeCategory = L>

chiseller commented 3 years ago

没升级到最新版吧