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

shadowColor and shadowOffset not work for UILabel(BarrageView) #87

Closed
roylly opened this issue Jan 31, 2018 · 3 comments
Closed

shadowColor and shadowOffset not work for UILabel(BarrageView) #87

roylly opened this issue Jan 31, 2018 · 3 comments

Comments

@roylly
Copy link

roylly commented Jan 31, 2018

I want to set label.shadowColor while UILabel(BarrageView) set layer.shadowColor like below
self.layer.shadowColor = [UIColor clearColor].CGColor;
and the same problem with shadowOffset.

@unash
Copy link
Owner

unash commented Jan 31, 2018

为 descriptor 设置下面两个值:
params[@"shadowColor"];
params[@"shadowOffset"]

@roylly
Copy link
Author

roylly commented Feb 6, 2018

这个可以通过attributedText设置文字阴影和阴影范围。UIlabel的文字阴影是有对应的属性的,就是shadowColor。这个库对于UIlabel,设置了layer.shadowColor。是对整个label做了阴影效果。
总体感觉这个库的API还不是很人性化,通过字典传参,需要知道内部很多参数和逻辑,看看后面能修改一下嘛。

@roylly roylly closed this as completed Feb 6, 2018
@unash
Copy link
Owner

unash commented Feb 7, 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