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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T09:20:55+00:00 2026-06-04T09:20:55+00:00

I have two UIViews on my view controller. I wanted to flip between the

  • 0

I have two UIViews on my view controller. I wanted to flip between the two views on user touch. Everything is fine except the animation I tried two methods, first was:

[UIView transitionFromView:frontView toView:backView 
duration:01.0 options:UIViewAnimationOptionTransitionFlipFromRight 
completion:NULL];

This was animating the view but actually animating the whole view controller’s view, while I wanted only the portion where my views are, which is about 320×200 in the centre of the screen.

Then I tried the other option, which is:

[UIView animateWithDuration:1.0 delay:0.0
            options:UIViewAnimationOptionTransitionFlipFromRight 
            animations:^{
        [frontView removeFromSuperview];
        [self.view addSubview:backView];
    } completion:nil];

But this is not animating the views at all. Just switching the views instantly without any animation. Can anyone please help me in understanding where I am wrong or need to change. Thanks very much for your time and consideration.

  • 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-04T09:20:56+00:00Added an answer on June 4, 2026 at 9:20 am

    Awhile after I posted my question I found a great answer for this query which you guys can look at :

    How to flip an individual UIView (without flipping the parent view)

    The trick is to use third UIView as container view and then adding the views, which needs to be animated, as subviews on it. That does the trick in my case. Remember that I am using the first method that I mentioned in my question. Thanks everyone for your time.

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

Sidebar

Related Questions

I have one view controller which contains two views (redView, blueView). The views are
In my iPhone app, I have a view controller with two views (essentially, a
I have a Navigation Controller with two Views. The First View is a ViewController
i have a main view controller with two subview in it,one is note-view and
I have a view controller with some elements, like 3 UIViews on the side.
The Problem: I have two View Controllers loaded into a root View Controller. Both
I have two view controllers named view1ViewController and view2ViewController in an cocoa touch project,
I have a two UIViews filled with UIButtons. I want to only allow one
I already have a view controller with a default view and few things added
I have a view controller managed in a UINavigationController. My view controller puts up

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.