Hello
I'm just trying to connect two CGPoint(s) with a line, I've tried with CGContextRef and CGContextAddLineToPoint but didn't work, basically I don't know exactly how to use the CGPoint (so a struct of x and y) as a set of coords :\
Imagine I have a recognizer that catch the tap gesture and make a CGPoint (with the right coords, I've printed the right coords with NSLog so it works, and I store the next coords of every tap in a NSMutableArray, everytime I tap it prints the full array with the latest tap coords, so I know that works well for now in console).
I only need to tell him to draw a line between a tap and the next one, I'm looking for but can't understand exactly what I need
How can I use the CGPoint as coord to draw a Line?
any advice would be appreciated
I'm just trying to connect two CGPoint(s) with a line, I've tried with CGContextRef and CGContextAddLineToPoint but didn't work, basically I don't know exactly how to use the CGPoint (so a struct of x and y) as a set of coords :\
Imagine I have a recognizer that catch the tap gesture and make a CGPoint (with the right coords, I've printed the right coords with NSLog so it works, and I store the next coords of every tap in a NSMutableArray, everytime I tap it prints the full array with the latest tap coords, so I know that works well for now in console).
I only need to tell him to draw a line between a tap and the next one, I'm looking for but can't understand exactly what I need
How can I use the CGPoint as coord to draw a Line?
any advice would be appreciated