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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:00:22+00:00 2026-05-23T18:00:22+00:00

I want to do animation like NavigationController pushviewcontroller’s animation. but I don’t have a

  • 0

I want to do animation like NavigationController pushviewcontroller’s animation.
but I don’t have a NavigationController, I don’t want to make it.

So I want to ask is it possible to do it’s animation in UIViewController? thanks!


oh forgot to say, I’m trying to switch view after clicking button.
Using presentModalViewController now, but I don’t like it’s animation..

  • 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-23T18:00:23+00:00Added an answer on May 23, 2026 at 6:00 pm

    You could animate the origin property of your sub view, make it decreasing along the x axis just after adding it to the main view.

    EDIT :

    Use something like this :

    // retrieve the screen bounds
    CGRect sBounds = [[UIScreen mainScreen] bounds];
    // the origin point is just on the right of the screen
    CGRect newFrame = CGRectMake(sBounds.size.width,
                                 0.0,
                                 sBounds.size.width,
                                 sBounds.size.height);
    // set your view frame
    [mySecondView setFrame:newFrame];
    // add it to the main view
    [mainView addSubview:mySecondView];
    // then animate your view
    [UIView animateWithDuration:0.5     // set the interval you want
                     animations:^{
                         mySecondView.frame.origin = sBounds.origin;
                     }
    ];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an UIViewController into an navigationController.All I want is when I rotate from
I want to make an animation like SwichView example in Beginning iPhone development. My
I like a jQuery animation done on a website and I want to discover
I would like to build a simple animation for a school project. I want
I have a simple animation the problem is I want the animation to end
i want create image animation , i have 50 images with png format now
I have a problem with moving animation. I want to create animation which start
I have a problem with switching images in android. I want to create animation
I want to display a progress animation while updatepanel's work being done, but without
I am beginner to Animation in Android. I want to set animation like Pendulum(Swing

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.