In our so many project there is need to give shadow effect in label we can do this in two steps:
- first add #include <QuartzCore/QuartzCore.h> framework.
- in code file apply this code:
shadowLabel.layer.shadowColor = self.glowColor.CGColor;
shadowLabel.layer.shadowOffset = CGSizeMake(0, 0);
shadowLabel.layer.shadowOpacity = 1;
shadowLabel.layer.shadowRadius = self.glowAmount;
No comments:
Post a Comment