Re: Calculating Scale Factor touchesMoved event.

2010-12-02 Thread Gustavo Adolfo Pizano
Ok I got something similar to what I want.. @ glenn I see the "180 rotation when first move" still happens any idea? her eis the code now CGPoint Location = [[touches anyObject] locationInView:self]; CGPoint p = [self convertPoint:self.center fromView:self.s

Re: Calculating Scale Factor touchesMoved event.

2010-12-02 Thread Gustavo Adolfo Pizano
glenn thanks... thats solves one preoblem I had no idea why was that.. Now im trying for the second problem the following: CGFloat currentDistance = distanceBetweenPoints(firstTouchPoint,p); CGFloat previousDistance = distanceBetweenPoints(p,[aTouch previousLocationI

Re: Calculating Scale Factor touchesMoved event.

2010-12-02 Thread glenn andreas
On Dec 2, 2010, at 9:37 AM, Gustavo Adolfo Pizano wrote: > now in my touches moved I do the following, the first part applies a > rotation, which is working properly, except that after the first move > the angle is 180 from what the view has, so you see that the view > turns 180 degrees!!, >

Calculating Scale Factor touchesMoved event.

2010-12-02 Thread Gustavo Adolfo Pizano
Hello. Im trying to make a scale up or down of a view with one finger only, by moving outwards and inwards a control view, which represent a virtual circled pad.. I have the following code in the control pad -(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ UITouch * aTouc