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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T20:55:49+00:00 2026-05-16T20:55:49+00:00

I present a modal view controller which is a tab bar controller with a

  • 0

I present a modal view controller which is a tab bar controller with a navigation controller inside it.

The problem is my first view has a black background and I want the new view to have a white background.

This means I either have to have the modal view controller with a transparent background (until its completed the “slide up” animation when it shows the white background) OR I have to set the navigation controller background as white in order to make it non-transparent.

This results in me having an extra strip of white ABOVE the navigation bar (where the network status/battery status/time bar goes). I can’t get rid of this. 🙁

So if I could flip the view in, or fade it in, or slide it from the right or the left or something that would be much better asthetically.

Is there any way to do this? Or will I just have to set “animated:” to NO?

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-05-16T20:55:50+00:00Added an answer on May 16, 2026 at 8:55 pm

    I did not understand what your plight with the different color backgrounds is about. Opaque backgrounds on your views, especially animating ones, make the app run faster. Now about transitions, before you call presentModalViewController, insert one of the following lines:

    modelViewController.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
    modelViewController.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
    modelViewController.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
    modelViewController.modalTransitionStyle = UIModalTransitionStylePartialCurl;
    

    Any of the above will change the transition style (though the PartialCurl will result in a white bit of the last view still present in the top corner; it seems to be undocumented, though it’s used by the Maps app). You may have to play with what the modalTransitionStyle gets set on.

    Sliding in from the left or right is part of the navigation controller. Changing backgrounds is probably not what you want when working with the navigation controller.

    Also, that extra strip above the model view is going to show up no matter which way you transition in. It’s annoying, but it can be over come as follows:

    - (void)viewDidLoad {
        [super viewDidLoad];
        navigationController.view.frame = CGRectMake(0, 0, 320, 460); //<--This line
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got a UIViewController that has a modal window which I'd like to present
My app has two distincts modes. There's a tab bar controller in the app
If I push view controllers and/or present modal view controllers on a UINavigationController ,
I'd like to know simply if it is possible to present a modal view
I currently have a method in my controller which accepts a form collection, saves
I have a company object which has a list of branch objects, my company
I have a reasonably simple split view application adapted from iPhone code. The main
I'm aware some of you may not be familiar with Monotouch, but this could
Specifically, I have something like a game, with a menu screen made out of
I'm authoring an iPad app. One of the screens in the app is perfectly

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.