for( int j = 2 ; j < [array count] ; j+= 2 )
{
x = [[array objectAtIndex:0] floatValue];
y = [[array objectAtIndex:1] floatValue];
CGContextAddLineToPoint( ctx , x , y );
}
It looks like you are drawing to the same point over and over again. I guess you should actually use the value of j you're looping through.
for( int j = 2 ; j < [array count] ; j+= 2 )
{
x = [[array objectAtIndex:j + 0] floatValue];
y = [[array objectAtIndex:j + 1] floatValue];
CGContextAddLineToPoint( ctx , x , y );
}