I want to use an function to pass a lot of points to another function, but the Xcode has errors on the line with: CGContextAddLines......
the add points is filled with information like:
CGPoint addPoints[] = { CGPointMake(10,10), CGPointMake(10,10), }
the use the -(void) constructPoints:(CGContextRef) context withPoints:(CGPoint) addPoints {
// do some context set attributes, color
// and
CGContextAddLines(context, addPoints, sizeof(addPoints)/sizeof(addPoints[0]));
// and draw-it
}