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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T11:38:02+00:00 2026-06-15T11:38:02+00:00

This is my problem: I need instructions on how to fix the 3.5 inch

  • 0

This is my problem: I need instructions on how to fix the 3.5 inch xib for the 4 inch screen. I have already loaded the Default-568 img so I no longer have the letterbox layout.

I have the traditoinal 3.5 inch scren XIB and everything is perfect.

But when we turn to the 4 inch screen there is a large space to be filled and if I rearrange the XIB file for the iphone 5 screen when I turn to the 3.5 screen I can’t see the button. Does it makes sense? Also I want to support versions prior to ios 6.

What I need is a fix or code or anything for the IPhone larger screen to be distributed proportionally.I have been reading that a solution could be duplicating the original xib file and arrange myself duplicated file in a 4 inch layout but I could´t figure out how to let the IPhone make the decision of opening one of the two xib files existing.

I have been given this piece of code but I still do not know where to paste it. I tried in the viewDidLoad but nothing;

if(thisDevice.userInterfaceIdiom == UIUserInterfaceIdiomPad)
{
    NSLog(@"Ipad ");
}
else
{
    NSLog(@"Iphone %f ",[[UIScreen mainScreen] bounds].size.height);
    if ([[UIScreen mainScreen] bounds].size.height == 568) {
        //this is iphone 5 xib
        viewName=[[NSString alloc]initWithString:@"ViewControllerIphone5"];
    } else {
        // this is iphone 4 xib
        viewName=[[NSString alloc]initWithString:@"ViewController"];
    }
}

I don´t know where to put that code; I know it is in the implementation file but I don’t know where.I don’t want autoresizing masks

Please, I´ll be glad if you could help me with this problem. I need careful instructions as I don´t have a lot of knowledge in the topic.

Thanks in advance!

  • 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-15T11:38:03+00:00Added an answer on June 15, 2026 at 11:38 am

    You have 4 options

    1-) using a seperate xib file for 4” screen, and in applicationDidFinishLaunching:withOptions method deciding which xib to load depending on mainScreen height.

    2-) using auto layout ( only ios 6 + )

    3-) using struts and springs

    4-) calling a method only on 4” devices, and setting view’s frames and positions for 4” display manually in that method

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

Sidebar

Related Questions

Need some help with this problem in implementing with XSLT, I had already implemented
I need some help in solving this problem. We have a large amount of
I have solved this problem, I just need to know what to do. I
I bumped into this problem when I created a chart that need a axis
Ive got this problem: Line 20 (LOOT_FromContainer(container) I need that to use as Invoke
I'm trying to debug this problem but not sure where exactly i need to
I've been researching this problem, but I can't find what I need. It shouldn't
Well i need some help here i don't know how to solve this problem.
I don't like JSF but I need to solve this problem with it, I
ive being trying to cope with this problem but still. I need your help.

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.