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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T06:43:26+00:00 2026-05-31T06:43:26+00:00

Supposed you’ve got: – (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.window = [[UIWindow alloc] initWithFrame:[[UIScreen

  • 0

Supposed you’ve got:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
    // Override point for customization after application launch.

    UIViewController *rootViewController = [[UIViewController alloc] init];
    rootViewController.view.backgroundColor = [UIColor whiteColor];

    [self.window setRootViewController:rootViewController];
    [self.window makeKeyAndVisible];

    UINavigationController *modal = [[UINavigationController alloc] initWithRootViewController:[[PTFrontViewController alloc] init]];
    modal.modalPresentationStyle = UIModalPresentationFormSheet;
    [rootViewController presentViewController:modal animated:YES completion:NULL];

    return YES;
}

whereas PTFrontViewController and PTBackViewController view controllers have nothing interesting for sake of this example.

How could you push an instance of PTBackViewController from PTFrontViewController animating as in UIViewAnimationTransitionFlipFromLeft or UIViewAnimationTransitionFlipFromRight?

I am already well aware of these three things:

  1. this is not exactly how you should make use of presentViewController
  2. there is a good reason for UINavigationController‘s default animation
  3. there are several answers how to “customize” UINavigationController‘s default animation while pushing and poping, but if you try the code for your self you will notice that when a view controller is presented via presentViewController there are drop shadows and background views that won’t get animated correctly

So please answer taking these things in mind. Thank you.

  • 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-31T06:43:28+00:00Added an answer on May 31, 2026 at 6:43 am

    First – forget UINavigationController. If you don’t need the default animation, just put a UINavigationBar into your controllers. It will get a little easier.

    Second – this is a difficult problem, you can’t create such an animation only within the modal controller because the background wouldn’t be repainted.

    Sincerely, the easist solution I see is too forget the modal controller and just add the view controller as a child of your root controller. Then you can control all the animations but you have to write everything by yourself (including the background fading).

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

Sidebar

Related Questions

I' am supposed to write an application that lets you store data (contact informations)
Supposed I register many different function names in Lua to the same function in
This function is supposed to set descending order numbers on an IEnumerable<Order>, but it
What is supposed to happen if a package is installed in multiple libraries? For
I am supposed to created a HashMap inside another HashMap as shown below which
I know LINQ is supposed to automatically return strongly typed result sets. When I
I'm supposed to use watershed to allow users to create and post their own
I'm supposed to create an array and sort the numbers from smallest to largest.
My program is supposed to tally up bottles from 4 rooms. When the user
I am supposed to create an array of 1000 ints and write a method

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.