If you do not want blur, you can:
myLayer.shadowColor = [[UIColor greenColor] CGColor]; myLayer.shadowOffset = CGSizeMake(5.0, 5.0); myLayer.shadowOpacity = 1.0; myLayer.shadowRadius = 0.0;
shadowRadius determines the amount of blur. shadowOffset determines where the shadow goes.
Rob
source share