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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T14:43:03+00:00 2026-05-19T14:43:03+00:00

I may be onto the wrong approach to transition one view to another in

  • 0

I may be onto the wrong approach to transition one view to another in a view controller, but a bug I end up having is that the view can still detect touches while fading out.

Is there a way to tell your program to stop detecting touches globally easily?

-or-

Is there a better way for me to fade from one view to another? I expected there was a way to cache a picture of the old view, because I only need it for the effect, I don’t need it to actually BE there active!

Right now a view controller method is being called, gotoIntro:

- (void)gotoIntro {

NSLog(@"switch to intro");

[UIView beginAnimations:nil context:NULL]; {
    [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
    [UIView setAnimationDuration:.5];
    [UIView setAnimationDelegate:self];


    for(UIView *v in [containerView subviews]) {
        v.alpha = 0;
        v.frame = CGRectMake(0, 0, 1024, 768);
        [UIView setAnimationDidStopSelector:@selector(removeView:finished:context:)];
    }

MainMenu *mainMenu = [[MainMenu alloc] init];
mainMenu.frame = CGRectMake(0, 0, 1024, 768);
[containerView insertSubview:mainMenu atIndex:0];
[mainMenu release];



} 

[UIView commitAnimations];

}
-(void)removeView:(NSString *)animationID finished:(NSNumber *)finished context:(void *)context {
NSLog(@”VIEW REMOVED”);
[[self.view.subviews objectAtIndex:1] removeFromSuperview];
}

The previous view is set to index 1, which I wish I didn’t have to do. Sorry I couldn’t put the rest of the code in that box. Stack Overflow is broken.

  • 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-19T14:43:04+00:00Added an answer on May 19, 2026 at 2:43 pm

    Call [[UIApplication sharedApplication] beginIgnoringInteractionEvents] and endIgnoringInteractionEvents, respectively.

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

Sidebar

Related Questions

I have a view controller that i'm trying to push onto the navigation stack.
Problem: find ids that are in one file but not in another. Each file
May be I am getting old, but I can't find it...
May be a stupid questions but can I protect a row of data in
I have a view which is pushed onto the UINavigationController stack from another UITableView.
I think I may have stumbled onto a limitation of Flot, but I'm not
May I know know I can trigger system to repaint nth row in JList?
May be it sound dumb but if I want some computed value from other
I may just be passing data between views completely wrong here, so I am
Note: You may not need to read the whole thing to know what's wrong...

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.