Hi ,
I am using SnowFall app, in which a image is falling from top of screen to bottom. This app uses animation to achieve this task.
// put the flake in our main view [self.view addSubview:flakeView];
[UIView beginAnimations:nil context:flakeView];
// set up how fast the flake will fall
[UIView setAnimationDuration:4 * speed];
// set the postion where flake will move to
//flakeView.frame = CGRectMake(endX, 500.0, 25.0 * scale, 25.0 * scale);
flakeView.frame = CGRectMake(endX, 500.0,16, 16);
// set a stop callback so we can cleanup the flake when it reaches the
// end of its animation
[UIView setAnimationDidStopSelector:@selector(onAnimationComplete:finished:context:)];
[UIView setAnimationDelegate:self];
[UIView commitAnimations];
My Problem is I need to capture frame of image where they are moving.
Is there any way so that I can find what is the current location of image on the screen.
Thanks
EDIT: I am trying to use : CGRectIntersectsRect(frame1, frame2) where frame1 is image which is animating and frame2 is an object. If image intersect the object I have to some thing.