iphone Programming Glossary: smoothedpath
Drawing Smooth Curves - Methods Needed http://stackoverflow.com/questions/8702696/drawing-smooth-curves-methods-needed valueWithCGPoint points _INDEX_ #define POINT _INDEX_ NSValue points objectAtIndex _INDEX_ CGPointValue UIBezierPath smoothedPathWithGranularity NSInteger granularity NSMutableArray points NSMutableArray self pointsOrdered mutableCopy if points.count.. math make sense points insertObject points objectAtIndex 0 atIndex 0 points addObject points lastObject UIBezierPath smoothedPath self bezierPath smoothedPath removeAllPoints smoothedPath moveToPoint POINT 0 for NSUInteger index 1 index points.count.. points objectAtIndex 0 atIndex 0 points addObject points lastObject UIBezierPath smoothedPath self bezierPath smoothedPath removeAllPoints smoothedPath moveToPoint POINT 0 for NSUInteger index 1 index points.count 2 index CGPoint p0 POINT index..
|