I'm not sure how you are detecting touches now, but you should look at
using CALayer's hitTest: method to determine if/what layer was
clicked/touched. If the animation is still moving, you definitely need
to be querying the presentationLayer and not the modelLayer.
I am detecting touches in
On Sat, Aug 21, 2010 at 5:32 PM, Eric Wing ewmail...@gmail.com wrote:
On 8/21/10, Ahsan Shafiq ahsan.shafiq...@gmail.com wrote:
Yes, you are right but now I am unable to handle touches.
As I said in my previous post, I also want to update the model. Simply
scaling as you mentioned does
Yes, you are right but now I am unable to handle touches.
As I said in my previous post, I also want to update the model. Simply
scaling as you mentioned does scale down or scale up the sublayers as well
but how to update the model. In Scaling both the position and bounds get
changed!! and after
On 8/21/10, Ahsan Shafiq ahsan.shafiq...@gmail.com wrote:
Yes, you are right but now I am unable to handle touches.
As I said in my previous post, I also want to update the model. Simply
scaling as you mentioned does scale down or scale up the sublayers as well
but how to update the model. In
bump*
On Thu, Aug 19, 2010 at 10:47 AM, Ahsan Shafiq ahsan.shafiq...@gmail.comwrote:
Hi
I have read that in explicit animation, say translation, to really change
the model layer position we have to change it's position too. So here is my
code:
CABasicAnimation *animation =
CABasicAnimation *animation =
[CABasicAnimation animationWithKeyPath:@bounds];
CGRect orgVal = CGRectMake(0, 0,
firstWheelLayer.bounds.size.width, firstWheelLayer.bounds.size.height);
CGRect newVal = CGRectMake(0, 0,
Hi
I have read that in explicit animation, say translation, to really change
the model layer position we have to change it's position too. So here is my
code:
CABasicAnimation *animation =
[CABasicAnimation animationWithKeyPath:@position];
CGPoint pt =