What does shadowOffset do in iOS exactly?

ios, ios7

Solution

The shadowOffset value changes the location of the shadow with respect to the element's frame. An offset of (2,2) will put the shadow 2 pixels to the right and 2 pixels down with respect to the element. An offset of (15,45) will put the shadow 15 pixels to the right and 45 pixels down. These can also be negative values if you want the shadow to be to the top or left of the element.

And by pixels I mean units. Based off the original (non-retina) pixel sizes of apple devices.

Problem

I couldn't find this info anywhere so asking here. What does `element.layer.shadowOffset = CGSizeMake(2.0, 2.0)]` do exactly? What offset does it indicate with respect to the element?

Original source