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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T14:14:56+00:00 2026-06-02T14:14:56+00:00

I have just made my app universal by combining separate iPhone and iPad projects.

  • 0

I have just made my app universal by combining separate iPhone and iPad projects. Everything seems to be working but there is one major bug.

When the iPad app launches it just displays a black screen (presumably the window) and status bar. When I press the home button I suddenly see the SplitViewController as it disappears. When I open the app up again the SplitViewController is displayed.

I can’t figure out why the controller only displays after I close and reopen the app. Any ideas?

(I don’t have any idea what is causing this so if you need code samples from specific places let me know).

Thanks.

Edit:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    [Appirater appLaunched:YES];
    // Registers this class as the delegate of the audio session.
    [[AVAudioSession sharedInstance] setDelegate: self];    
    // Allow the app sound to continue to play when the screen is locked.
    [[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryPlayback error:nil];


justOpened = YES;
self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease];
// Override point for customization after application launch.

if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) {
      {deleted}
} else {
    [self.window addSubview:self.splitViewController.view];
    [self.window makeKeyAndVisible];

    CGRect rect = CGRectMake(-2, self.window.frame.size.height-29, self.window.frame.size.width+2, 29);
    imgBar = [[UIImageView alloc] initWithFrame:rect];
    imgBar.contentMode = UIViewContentModeScaleToFill;
    imgBar.image = [UIImage imageNamed:@"wood_btm.png"];
    imgBar.autoresizingMask = UIViewAutoresizingFlexibleWidth|UIViewAutoresizingFlexibleTopMargin;

    self.splitViewController.showsMasterInPortrait = YES;
    self.splitViewController.title = @"Exams";
    self.splitViewController.splitPosition=280;
}

return YES;
}

Update:

By messing around with the window’s background color I discovered that for some reason it was at the top of the view hierarchy. I then made the window’s background color clear and I could see the SplitViewController. Strangely I can also interact with it. So essentially I have solved the problem by making the window clear. This is obviously not the ideal solution though so if anyone can think of a cause let me know.

  • 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-06-02T14:15:00+00:00Added an answer on June 2, 2026 at 2:15 pm

    By messing around with the window’s background color I discovered that for some reason it was at the top of the view hierarchy. I then made the window’s background color clear and I could see the SplitViewController. Strangely I can also interact with it. So essentially I have solved the problem by making the window clear.

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

Sidebar

Related Questions

I just updated our app to an universal app for iPhone and iPad. I
I have never made an app using XCode and Cocoa but I think following
I've just made a basic Hello World app for the iPhone. Compiling and running
I'm just beginning Android and have gotten myself stuck. I've made a simple app/view.
So I made my iPhone app universal, it created a new mainWindow xib file
I have just made an app for Android phones. It is a rather simple
Here is how I made a universal app from an existing iPhone project by
I've just finished my app for iPhone and it is working fine. I now
I have just made an app and now I'm planning to make a 'pro'
I have just made a small little app of a Python wxPython script with

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.