¡@

Home 

2014/10/15 ¤U¤È 10:04:38

iphone Programming Glossary: bluecontext

iPhone CGContext: drawing two lines with two different colors

http://stackoverflow.com/questions/3041776/iphone-cgcontext-drawing-two-lines-with-two-different-colors

the drawRect method. I am trying to draw a red and a blue line void drawRect CGRect rect NSLog @ drawrect CGContextRef bluecontext UIGraphicsGetCurrentContext CGContextSetLineWidth bluecontext 2.0 CGContextSetStrokeColorWithColor bluecontext UIColor blueColor.. void drawRect CGRect rect NSLog @ drawrect CGContextRef bluecontext UIGraphicsGetCurrentContext CGContextSetLineWidth bluecontext 2.0 CGContextSetStrokeColorWithColor bluecontext UIColor blueColor .CGColor CGContextMoveToPoint bluecontext 1 1 CGContextAddLineToPoint.. bluecontext UIGraphicsGetCurrentContext CGContextSetLineWidth bluecontext 2.0 CGContextSetStrokeColorWithColor bluecontext UIColor blueColor .CGColor CGContextMoveToPoint bluecontext 1 1 CGContextAddLineToPoint bluecontext 100 100 CGContextSetStrokeColorWithColor..