Iphone graphics -


Can anyone give me simple code to create a line in the mirror?

Edit: The code for the picture below is line

  - (Zero) Direct: (CGRTact) rect {CGContextRef c = UIGraphicsGetCurrentContext (); CGflotTl [4] = {1.0F, 0.0F, 0.0F, 1.0F}; CGContextSetStrokeColor (c, red); CGContextBeginPath (c); CGContextMoveToPoint (C, 5.0F, 5.0F); CGContextAddLineToPoint (C, 50.0F, 50.0F); CGContextStrokePath (c); }    

Comments