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 8039969
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T03:44:35+00:00 2026-06-05T03:44:35+00:00

I am currently trying to animation from one view to another using a swipe

  • 0

I am currently trying to animation from one view to another using a swipe gesture which in turn would animate View A off the screen to the left and then have view B animate along with it by appear from the right.

This is actually working in my application however when the views animate instead of View B following on the edge of View A and have them both move at the same time, View B will not move untill View A’s animatoin has finished…

this is what the code looks like

- (void)swipedScreen:(UISwipeGestureRecognizer*)gesture
{
    if (gesture.direction = UISwipeGestureRecognizerDirectionLeft) {
        [UIView animateWithDuration:1.50 animations:^{

//            [self.detailViewB.view setAlpha:1.0f];
            [self.detailViewB.view setCenter:CGPointMake(CGRectGetMidX(self.view.frame), CGRectGetMidY(self.view.frame))];
            [self.detailViewA.view setCenter:CGPointMake(-640, CGRectGetMidY(self.view.frame))]; 
        }];
    }
}

And if you would like to compile the source yourself here is a link to the code I am messing around with. http://dl.dropbox.com/u/53813770/SMPrototypeB.zip

any help would be greatly appreciated.

  • 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-06-05T03:44:36+00:00Added an answer on June 5, 2026 at 3:44 am

    Fixed your code and reuploaded the project here

    Changes I made:

    -(void) viewDidLoad
    {
        [self.detailViewB.view setFrame:CGRectMake(320, 0, self.view.frame.size.width, self.view.frame.size.height)];
    
    }
    
    
    - (void)swipedScreen:(UISwipeGestureRecognizer*)gesture
    {
        if (gesture.direction = UISwipeGestureRecognizerDirectionLeft) {
            [UIView animateWithDuration:1.50 animations:^{
    
                //            [self.detailViewB.view setAlpha:1.0f];
                [self.detailViewB.view setFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height)];
                [self.detailViewA.view setFrame:CGRectMake(-320, 0, self.view.frame.size.width, self.view.frame.size.height)];
            }];
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My employer is currently trying out Fogbugz and one feature that would be nice
I'm presently trying to switch view from a UIViewController to a SplitViewController. I'm currently
Im currently trying to downlaod a audio track from a WCF, i need some
I'm currently trying to add an MSChart to a partial view in ASP.NET MVC
I'm currently trying to port an app from asp.net to php, however I just
I am currently developing a game and I'm trying to use one AnimationDrawable to
I am creating a slideshow of animations using animated GIFs. I'm crossfading from one
I am using SnowFall app, in which a image is falling from top of
I'm trying to figure out how to animate the change from Visibile to Hidden
im trying to do an animation with an uiimageview . in this view is

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.