iphone - get coordinates of animated UIImageview -


i animating uiimageview in horizontal position purpose have used below code have used nstimer

timer = [nstimer scheduledtimerwithtimeinterval:0.2 target:self selector:@selector(ontimer) userinfo:nil repeats:yes];  -(void)ontimer {     [uiview animatewithduration:10.0f animations:^{           //moving_cloud image view             moving_cloud.frame = cgrectmake(200.0f, 150.0f, moving_cloud.frame.size.width, moving_cloud.frame.size.height);            }];  } 

now problem facing need coordinates of "moving_cloud" after animate duration
please me
in advance.

abhijit chaudhari comment in previous post understand want not position "after animate duration" instead position during animation.

if still didn't right please clarify question. (or buy me new brain)

-(void) animateme(){     nstimer *timer = [nstimer scheduledtimerwithtimeinterval:0.01 target:self selector:@selector(ontimer:) userinfo:nil repeats:yes];     [uiview animatewithduration:10.0f animations:^{          //moving_cloud image view          moving_cloud.frame = cgrectmake(200.0f, 150.0f, moving_cloud.frame.size.width, moving_cloud.frame.size.height);     }]; }  -(void)ontimer:(id)sender{     nslog(@"currently in x=%f", [[ddddd.layer presentationlayer] frame].origin.x);     nslog(@"currently in y=%f", [[ddddd.layer presentationlayer] frame].origin.y); } 

Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -