I'm using coreGraphic to draw the line .. So far so good ... I can very well create a line the problem is that I can not multiply them by the number of objects inserted into an array.
To do this I have created a for loop but always visualize a line ... can you help me?
CGContextRef context = UIGraphicsGetCurrentContext();
for (int i = 0; i < 100; i++ ) {
CGContextMoveToPoint(context, 20, 20);
CGContextAddLineToPoint(context, 20, self.frame.size.height -20);
CGContextSetStrokeColorWithColor(context, [[UIColor whiteColor] CGColor]);
}
CGContextStrokePath(context);