¡@

Home 

2014/10/15 ¤U¤È 10:15:41

iphone Programming Glossary: v.layer

Applying a Gradient to CAShapeLayer

http://stackoverflow.com/questions/4733966/applying-a-gradient-to-cashapelayer

0.1 i saturation 1 brightness .8 alpha 1 CGColor gradientLayer.colors colors gradientLayer setMask gradientMask v.layer addSublayer gradientLayer If you want to also use the shadows you would have to place a duplicate of the shape layer under..

UIView with rounded corners and drop shadow?

http://stackoverflow.com/questions/4754392/uiview-with-rounded-corners-and-drop-shadow

this question The following code snippet adds a border border radius and drop shadow to v a UIView border radius v.layer setCornerRadius 30.0f border v.layer setBorderColor UIColor lightGrayColor .CGColor v.layer setBorderWidth 1.5f drop shadow.. snippet adds a border border radius and drop shadow to v a UIView border radius v.layer setCornerRadius 30.0f border v.layer setBorderColor UIColor lightGrayColor .CGColor v.layer setBorderWidth 1.5f drop shadow v.layer setShadowColor UIColor blackColor.. v a UIView border radius v.layer setCornerRadius 30.0f border v.layer setBorderColor UIColor lightGrayColor .CGColor v.layer setBorderWidth 1.5f drop shadow v.layer setShadowColor UIColor blackColor .CGColor v.layer setShadowOpacity 0.8 v.layer..