现在我正在使用
NSShadow *textShadow = [NSShadow new];
textShadow.shadowBlurRadius = 5;
textShadow.shadowColor = [[NSColor whiteColor] colorWithAlphaComponent:.5];
[self addAttribute:NSShadowAttributeName value:textShadow range:NSMakeRange(0, self.length)];
从 NSTextStorage 给文本一个阴影。但我想应用多个阴影,添加另一个NSShadowAttributeName
只会覆盖以前的值。
如何添加多个阴影?可以用CGContextSetShadowWithColor
吗?