I've been trying to get the following effects on my text:
I want to get the white border around my text, I tried playing around with the following, but it didn't work out
self.name.layer.shadowOpacity = 5.0;
self.name.layer.shadowRadius = 0.0;
self.name.layer.shadowColor = [UIColor whiteColor].CGColor;
self.name.layer.shadowOffset = CGSizeMake(0.0, -5.0);
What 开发者_运维知识库is the easiest way to achieve this?
try the following
self.name.layer.shadowColor = [label.textColor CGColor];
self.name.layer.shadowOffset = CGSizeMake(0.0, 0.0);
self.name.layer.shadowOpacity = 0.5;
self.name.layer.shadowRadius = 20.0;
精彩评论