関数を使用して多くのポイントを別の関数に渡したいのですが、Xcodeに次の行にエラーがあります:CGContextAddLines ..... ..
追加ポイントには、次のような情報が入力されます。
CGPoint addPoints [] = {CGPointMake(10,10)、CGPointMake(10,10)、}
-(void)constructPoints:(CGContextRef)コンテキストwithPoints:(CGPoint)addPoints{を使用します。
// do some context set attributes, color
// and
CGContextAddLines(context、addPoints、sizeof(addPoints)/ sizeof(addPoints [0]));
//そしてdraw-it
}