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

  • Home
  • SEARCH
  • 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 7621929
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T04:19:17+00:00 2026-05-31T04:19:17+00:00

I have a universal app in development. The app uses NIBs, and I have,

  • 0

I have a universal app in development.

The app uses NIBs, and I have, for example,

ExcitingViewController.xib
ExcitingViewController~iPad.xib

On the iPhone or iPad simulator, the appropriate variant is picked up automagically (i.e. the one with the ~iPad suffix is selected on the iPad without any code change).

However, on a real iPad the iPhone variant is always used.

I’ve seen mention of selecting the appropriate NIB programatically, but as this is handled automagically on the simulator, I don’t see why it couldn’t be on a real deice.

if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone)
{
    excitingViewController = [[ExcitingViewController alloc] initWithNibName:@"ExcitingViewController" bundle:nil];
}
else
{
    excitingViewController = [[ExcitingViewController alloc] initWithNibName:@"ExcitingViewController~iPad" bundle:nil];
}

Any tips on getting the ~iPad variants selected automatically on a real device?

(btw, the simulators are normally utterly dependable in exhibiting the correct behaviour, so it’s annoying to find these differences / bugs).

  • 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-31T04:19:20+00:00Added an answer on May 31, 2026 at 4:19 am

    OK, the answer does seem to be that you need to handle this programmatically (as shown in the question), which seems like a missed opportunity by Apple, but maybe there’s more to it.

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

Sidebar

Related Questions

I have a universal app and for each device (iPad, iPhone) have different sets
Im converting an Iphone app to a universal App, I have created an Ipad
If I have a universal app (runs on both iPhone & iPad), how do
I have a universal iPhone/iPad app. On the main menu I have a UIImage
I have a Universal app (iPhone/iPad) which has an iAd displayed at the bottom
I have a Universal app (iPhone/iPad) which is very basic. There is a List
I have a Universal app (iPhone/iPad) testing on IOS4.3. It has an iAd which
I have written a universal iOS-App that runs fine on my iPhone and iPad,
I have a universal app for ipad and iphone. What I'm trying to determine
I have a universal binary app for iPhone / iPad. In console I always

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.