绘制UIlabel与暗阴影颜色

时间:2013-07-29 04:42:55

标签: uilabel

如何使用如下图所示的阴影颜色绘制UILabel。

这是我正在尝试的代码..

self.averageLabel.layer.shadowColor = [UIColor whiteColor].CGColor;
self.averageLabel.layer.shadowOffset= CGSizeMake(0.0, 1.0);
self.averageLabel.layer.shadowRadius = 10.0f;

enter image description here

1 个答案:

答案 0 :(得分:0)

我希望我的建议对您有所帮助,

 self.averageLabel.bordercolor =[UIColor  whitecolor];
 self.averageLabel.layer.borderwidth=3.0;

或者   一旦您参考下面提供的链接。

How do I make UILabel display outlined text?

相关问题