iphone Programming Glossary: pathtodraw
How to draw graphics in iphone gesture? http://stackoverflow.com/questions/6173685/how-to-draw-graphics-in-iphone-gesture startPoint_ @synthesize endPoint endPoint_ void drawRect CGRect aRect UIColor redColor setStroke UIBezierPath pathToDraw UIBezierPath bezierPath pathToDraw moveToPoint self.startPoint pathToDraw addLineToPoint self.endPoint pathToDraw stroke..
Draw Line with gesture http://stackoverflow.com/questions/6436990/draw-line-with-gesture in void drawRect CGRect rect NSLog @ Entered Draw In Rect if Measuring UIColor redColor setStroke UIBezierPath pathToDraw UIBezierPath bezierPath for int n 1 n Points count 1 n NSValue value Points objectAtIndex NSInteger n CGPoint point value.. for int n 1 n Points count 1 n NSValue value Points objectAtIndex NSInteger n CGPoint point value CGPointValue pathToDraw moveToPoint point value Points objectAtIndex NSInteger n 1 point value CGPointValue pathToDraw addLineToPoint point pathToDraw.. value CGPointValue pathToDraw moveToPoint point value Points objectAtIndex NSInteger n 1 point value CGPointValue pathToDraw addLineToPoint point pathToDraw stroke the problem is holderView setNeedsDisplay never call or fire drawRect any suggestion..
|