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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:38:44+00:00 2026-05-26T11:38:44+00:00

In my library I have a loading view which pops to a input view.

  • 0

In my library I have a loading view which pops to a input view. When the user is done with the input view it should go back to the loading view to do some magic again and when done it should show up a third view.

Now, from a usability view I don’t want to “slide back” to the loading view, neither do I want to allocate a new loading view when I already have one in memory.

Is there some way I can popToRootViewController while sliding the view forwards?
(Yes, I remove the back button in the loading view)..

  • 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-26T11:38:44+00:00Added an answer on May 26, 2026 at 11:38 am

    Alright here goes – perhaps try using something like this

    // This goes in whatever view controller you want to pop with
    - (void)popToRootWithForwardAnimation
    {
        NSMutableArray * viewControllers = [[[self.navigationController viewControllers] mutableCopy] autorelease]
        UIViewController * rootViewController = [viewControllers objectAtIndex:0]
        [viewControllers removeObjectAtIndex:0]; // try using with and without this line?
        [viewControllers addObject:rootViewController];
    
        [self.navigationController setViewControllers:viewControllers animated:YES];
    }
    
    // This goes in the root view controller
    - (void)viewDidAppear:(BOOL)animated
    {
        [super viewDidAppear:animated]
        NSMutableArray * viewControllers = [[[self.navigationController viewControllers] mutableCopy] autorelease]
        if ([viewControllers count] > 1)
        {
            [viewControllers removeAllObjects];
            [viewControllers addObject:self];
    
            [self.navigationController setViewControllers:viewControllers animated:NO];
        }
    
        … 
        …
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have situation in which i have some library projects, say DataProcessors,Lib2 , included
I have an ASP.NET website in which I am loading some validation rules from
I have gdata library install on my ArchLinux, and a simple application which imports
I have an application loading a library containing a callback function for a global
Say I have a library libfoo.so.1 , which depends (according to ldd ) on
I'm having some trouble understanding how codeigniters loading works. Well first you have the
I have Main.fla and SkinA.fla. Both have MovieClip library item: MC_BrandLogo. I'm loading the
Of course most languages have library functions for this, but suppose I want to
I've started using Enterprise Library and have the following questions: 1)How do I add
I have a library I created, File mylib.c: #include <mylib.h> int testlib() { printf("Hello,

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.