【发布时间】:2012-05-31 11:33:05
【问题描述】:
我有一个 UILabel,这个标签有一个填充的背景色(它是我的 textView 的标题)。我想启用一个阴影,以便这个深色阴影落在 textview 上。
我已经在我的标签文本上实现了阴影。
descriptionLabel.layer.shadowColor = [[UIColor blackColor] CGColor];
descriptionLabel.layer.shadowOffset = CGSizeMake(4.0f, 0.0f);
descriptionLabel.layer.shadowOpacity = 1.0f;
descriptionLabel.layer.shadowRadius = 1.0f;
但是我希望在标签的完整框架下方有阴影(而不是文本)。
【问题讨论】:
标签: iphone background uilabel layer shadow