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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T17:04:11+00:00 2026-05-22T17:04:11+00:00

I want to push viewControllers to an area on my main viewController. From what

  • 0

I want to push viewControllers to an area on my main viewController. From what I understand, you can’t use a NavigationController unless you are adding it to a UIWindow.

This animation reminds of UIScrollView horizontal scrolling. But I want it to work like a NavigationController instead. The ViewControllers will be changed when the user presses on specific actions.

ViewController2 is going to be a tableView with some other buttons.

ViewController3 is going to be a form to change the object from the tableView.

Animation of viewControllers

  • 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-22T17:04:12+00:00Added an answer on May 22, 2026 at 5:04 pm

    I Actually solved it by playing around with UIView Animations.

    -(void)slideInView:(UIView*)newView toView:(UIView*)oldView {
        /* Sets the view outside the right edge and adds it to mainView */
        newView.bounds = mainView.bounds;
        newView.frame = CGRectMake(newView.frame.origin.x + 784, newView.frame.origin.y, newView.frame.size.width, newView.frame.size.height);
        [mainView addSubview:newView];
    
        /* Begin transition */
        [UIView beginAnimations:@"Slide Left" context:oldView];
        [UIView setAnimationDelegate:self];
        [UIView setAnimationDelay:0.0f];
        [UIView setAnimationDuration:0.5f];
        [UIView setAnimationDidStopSelector:@selector(slideInCompleted:finished:context:)];
        [UIView setAnimationCurve:UIViewAnimationCurveEaseOut];
        newView.frame = CGRectMake(0,0, newView.frame.size.width, newView.frame.size.height);
        oldView.frame = CGRectMake(oldView.frame.origin.x - 784, oldView.frame.origin.y, oldView.frame.size.width, oldView.frame.size.height);
        [UIView commitAnimations];
    }
    
    -(void)slideInCompleted:(NSString *)animationID finished:(NSNumber *)finished context:(void *)context {
        UIView *view = (UIView*)context;
        [view removeFromSuperview];
    }
    

    and to use it

    menuController = [[MenuViewController alloc] init];
    [self slideOutView:menuController.view toView:loginController.view];
    [oldController release];
    

    Remeber that you have alloced a UIViewController that you need to release when you are done useing it! In example i’m done with loginController and releasing it.

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

Sidebar

Related Questions

i want to know that when we want to use push notification service.From where
Read about Server push here . I want to push data to client from
I want to use push notification in my app.i want to know that do
I am developing an application in which I want to use push notification service.
So, I push a view controller from RootViewController like: [self.navigationController pushViewController:anotherViewController animated:YES] ; BUT,
I know I can do this [self.navigationController pushViewController:self.someUITabBarController animated:YES]; And that means putting UITabBarController
I Show a view using presentModalViewController . and from this UIView I want to
I want to push UIViewController from UIView. I have searched for that and i
I have a project that I want to push to a Mercurial repository on
Howday, I want to push data to flex clients. I am talking about anywhere

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.