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

  • Home
  • SEARCH
  • 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 9172809
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T16:26:25+00:00 2026-06-17T16:26:25+00:00

[sourceViewController.view addSubview:destinationController.view]; [destinationController.view setFrame:sourceViewController.view.window.frame]; [destinationController.view setTransform:CGAffineTransformMakeScale(0.5,0.5)]; [destinationController.view setAlpha:0.0]; [UIView animateWithDuration:0.3 delay:0.0 options:UIViewAnimationCurveEaseOut animations:^{ [destinationController.view

  • 0
[sourceViewController.view addSubview:destinationController.view];
[destinationController.view setFrame:sourceViewController.view.window.frame];
[destinationController.view setTransform:CGAffineTransformMakeScale(0.5,0.5)];
[destinationController.view setAlpha:0.0];

[UIView animateWithDuration:0.3
                      delay:0.0
                    options:UIViewAnimationCurveEaseOut
                 animations:^{
                     [destinationController.view setTransform:CGAffineTransformMakeScale(1.0,1.0)];
                     [destinationController.view setAlpha:1.0];
                     //[sourceViewController.view setAlpha:0];
                 }
                 completion:^(BOOL finished){
                     [destinationController.view removeFromSuperview];
                     [sourceViewController.navigationController pushViewController:destinationController animated:NO];
                 }];

My destinationController has 2 views one over the other. View #1 is the main view and totally visible and View #2 that is half visible half hidden. When I use the code above and move between segues I can see (while going from alpa 0 to 1) the hidden view completely under the main view. So the user can see what is hidden under there. (even if I make the animateWithDuration really fast). I don’t know why this is happening and trying to find a creative solution. One solution I came up with is using an animation inside the ViewController

[UIView animateWithDuration:0.7 animations:^() {_image.alpha = 1;}]; 

and by that “slowing down” the hidden view but obviously the view is loaded in a delay and doesn’t look so elegant on the visible part of the hidden view.

Thanks

  • 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-17T16:26:28+00:00Added an answer on June 17, 2026 at 4:26 pm

    You could hide the partly hidden view first, just before your animation, or set up another animation (which will run concurrently) to set the hidden view’s alpha to 0. Run this animation at the same or faster rate than your main view animation.

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

Sidebar

Related Questions

I have a SourceViewController and a DesViewController , there's a variable in DesViewController :
I segue from a tableview to detail view controller using custom segues. @implementation QuickNoteFlipSegue
I have 2 view controllers, call them ViewController1 and ViewController2. A modal segue is
I have two UIViewControllers that are contained in a navigatoin view controller and both
i need help here, i'm using a custom segue to push a view controller
I have a project which has a view controller as initial screen and then
I'm trying to make a custom segue so that the destination view controller slides
[To Make things short and clear] I've written a custom segue. -(void)perform { UIView
i am working on storyboards which has couple of views on first view a
I have a seque animation that I am trying to do. It has two

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.