Re: Moving a UIView when has a CAAffineTransformationRotate

2010-12-01 Thread Gustavo Pizano
GREAT!!... Im sorry my head is overheated already, its 12 midnight here... :S Thanks David. On Dec 1, 2010, at 11:54 PM, David Duncan wrote: > On Dec 1, 2010, at 2:53 PM, Gustavo Pizano wrote: > >> I was reading the docs, and it says precisely what David said, if I rotate >> a view, but i

Re: Moving a UIView when has a CAAffineTransformationRotate

2010-12-01 Thread David Duncan
On Dec 1, 2010, at 2:53 PM, Gustavo Pizano wrote: > I was reading the docs, and it says precisely what David said, if I rotate a > view, but i wan to know it's original dimensions width and height, how can I > get them? because after rotating the view those width and height that comes > form

Re: Moving a UIView when has a CAAffineTransformationRotate

2010-12-01 Thread Gustavo Pizano
Hello again. I was reading the docs, and it says precisely what David said, if I rotate a view, but i wan to know it's original dimensions width and height, how can I get them? because after rotating the view those width and height that comes form the frame, are not the same, and well the do

Re: Moving a UIView when has a CAAffineTransformationRotate

2010-11-30 Thread Gustavo Pizano
Hello Duncan. I did this change and it worked, i dunno if tis correct to do it, but the thing is I need the new locations respective the superview, not the view itself, so I have this: UITouch *aTouch = [touches anyObject]; CGPoint loc

Re: Moving a UIView when has a CAAffineTransformationRotate

2010-11-30 Thread David Duncan
On Nov 30, 2010, at 10:30 AM, Gustavo Pizano wrote: > it works ok for anything but views with a transformation, rotate in this > case) applied, im still having the same behavior as before, what am I doing > wrong?. Not sure, but if your still seeing issues it sounds like time to hit the debug

Re: Moving a UIView when has a CAAffineTransformationRotate

2010-11-30 Thread Gustavo Pizano
Sorry keeping mail in the list, On Nov 30, 2010, at 7:29 PM, Gustavo Pizano wrote: > Hello David, thanks for the reply. > > I have replace the code for this: > > UITouch *aTouch = [touches anyObject]; > CGPoint loc = [aTouch locationInView:

Re: Moving a UIView when has a CAAffineTransformationRotate

2010-11-30 Thread David Duncan
On Nov 30, 2010, at 9:49 AM, Gustavo Pizano wrote: > Any help or tip may be appreciate, my linear algebra is not that good ... :SS > I wanna cry... Move the center instead of the frame. The frame is derived from the center, bounds.size and transform, so once you've placed a transform on the v

Moving a UIView when has a CAAffineTransformationRotate

2010-11-30 Thread Gustavo Pizano
Hello all. Im sorry maybe a little bit OT, because this is more mathematical, but I dunno how to achieve it. First, I have a view, which I can rotate, I can move around doing this: UITouch *aTouch = [touches anyObject]; CGPoint loc = [aT