iphone - How to control CALayer's shadow, exactly?

Viewed 9920

I am very new to CALayer thing. I had a look at the documentation, but quite don't understand the meaning of those properties which can be used to control the shadow

shadowOpacity

shadowRadius

shadowOffset

I particularly don't understand the Offset & Radius.

Can anyone give me some lights to me, for this newbie question?

Another question about the shadow is

If the UIView view1's frame is CGRect(0, 0, 768, 40), if I apply shadow on it, will the shadow possibly be covered by another UIView which is just next to the bottom edge of view1?

thanks

1 Answers
Related