¡@

Home 

2014/10/15 ¤U¤È 10:05:56

iphone Programming Glossary: darkcolor

How to fill a shape defined with CGPoints with gradient in iOS?

http://stackoverflow.com/questions/7175886/how-to-fill-a-shape-defined-with-cgpoints-with-gradient-in-ios

used in drawing CGContextRef context UIGraphicsGetCurrentContext CGColorRef lightColor _lightColor.CGColor CGColorRef darkColor _darkColor.CGColor CGColorRef shadowColor UIColor colorWithRed 0.2 green 0.2 blue 0.2 alpha 0.5 .CGColor Get label text.. CGContextRef context UIGraphicsGetCurrentContext CGColorRef lightColor _lightColor.CGColor CGColorRef darkColor _darkColor.CGColor CGColorRef shadowColor UIColor colorWithRed 0.2 green 0.2 blue 0.2 alpha 0.5 .CGColor Get label text size to help.. context CGContextRestoreGState context Draw dark frame for the arrow CGContextSetStrokeColorWithColor context darkColor CGContextSetLineWidth context 1.0 CGContextSaveGState context draw1PxStroke context CGPointMake _coloredBoxRect.origin.x..