Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6241965
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T11:51:53+00:00 2026-05-24T11:51:53+00:00

I have an UIImageview which moves from a position to another. When I try

  • 0

I have an UIImageview which moves from a position to another. When I try to tap on the image during the animation touch event delegate method is not called. But when I tap on image after the completion of the animation, the delegate method executes. How can I detect the touch event on the uiimageview while it is changing its position.

my code:

vwb2 = [[UIView alloc] initWithFrame:CGRectMake(240, 500, 50, 50)];
[self.view addSubview:vwb2];
ballon2 = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"b2.png"]];
ballon2.userInteractionEnabled = TRUE;
ballon2.frame = CGRectMake(0, 0, 50, 50);
[vwb2 addSubview:ballon2];
[ballon2 release];

Edit:

My code for animation:

[UIView animateWithDuration:2.0
                 animations:^{ 
                     vwb1.center = CGPointMake(260, 40);
                 } 
                 completion:^(BOOL finished){

                     [UIView animateWithDuration:1.5
                                      animations:^{ 
                                          vwb2.center = CGPointMake(260, 100);
                                      } 
                                      completion:^(BOOL finished){
                                          [UIView animateWithDuration:1.0
                                                           animations:^{ 
                                                               vwb3.center = CGPointMake(260, 160);
                                                           } 
                                                           completion:^(BOOL finished){
                                                               [UIView animateWithDuration:1.0
                                                                                animations:^{ 
                                                                                    vwb4.center = CGPointMake(260, 220);
                                                                                } 
                                                                                completion:^(BOOL finished){
                                                                                    [UIView animateWithDuration:1.0 animations:^{ 
                                                                                        vwb5.center = CGPointMake(260, 280);
                                                                                    } ];
                                                                                }];
                                                           }];

                                      }
                      ];

                 }];

Thanks
Pankaj

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T11:51:55+00:00Added an answer on May 24, 2026 at 11:51 am

    I have posted correct solution as edit to my original question

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a UIImageView which has a png image sequence loaded into it. My
I have a custom UIImageView class which I use to handle multi-touch events on
I have an image inside an UIImageView which is within a UIScrollView. What I
I have an UIImageView which I want to rotate a little bit, but I
I have a UIImageView object that when clicked it will play a animation, I
I have a UIImageView showing a image that is larger than it's frame. It's
I have an UIImageView and taking the raw touch input. I need to check
I have a UIImageView that starts off with an image (loading.png) specified in IB.
I have a UIScrollView and a UIImageView which I have created programmatically without interface
I have a UIScrollView which contains many UIImageView s, UILabels, etc... the labels are

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.