Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QMUIToastContentView,appearance设置textLabelAttributes 、detailTextLabelAttributes失效 #358

Closed
4 tasks done
ghost opened this issue Jun 26, 2018 · 2 comments
Closed
4 tasks done

Comments

@ghost
Copy link

ghost commented Jun 26, 2018

请填写运行环境

  • 设备:iPhone /模拟器
  • 系统:iOS 11.4
  • Xcode 版本:9.4.1
  • QMUI iOS 版本:2.7.1

QMUIToastContentView,通过appearance来设置textLabelAttributes和detailTextLabelAttributes属性失效。其主要原因是:-tintColorDidChange方法中,对这两个属性进行了重新赋值,理论上逻辑没有问题。但是在QMUIToastView的- commonInit方法中,调用self.tintColor = UIColorWhite; 导致子控件-tintColorDidChange方法的调用,最后导致appearance来设置这两个属性不起作用。

@zhoon
Copy link
Collaborator

zhoon commented Jul 5, 2018

我们改改

@MoLice
Copy link
Collaborator

MoLice commented Jul 5, 2018

2.7.2 已修复这个问题。

@MoLice MoLice closed this as completed Jul 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants