0

I have two xib files created separately for iphone and ipad in the universal application. xib file design is good, but it when it load, white gap is their at the bottom side .

my iphone xib also loading like this only....

How to rectify this anyone help me,,,,

Thanks in advance, Suresh.M

Vaibhav Tekam
  • 2,344
  • 3
  • 18
  • 27
suresh
  • 31
  • 9
  • Possibly same as: http://stackoverflow.com/questions/5409163/interface-builder-off-vertically – Wex Mar 31 '11 at 08:47

4 Answers4

0

Do you check all the Layout Settings ? Because that's one problem i had very often.

mafis
  • 1,165
  • 9
  • 17
0

change the position of uiview(i.e. x,y positions) , in your viewwillappear or viewdidload method.Hope it helps

Aman Aggarwal
  • 3,754
  • 1
  • 19
  • 26
0

Sounds obvious but check the dimensions of your views. This has happened to me before when the xib has been simulating the status bar and I have then turned the status bar off. The resulting dimensions end up 20 pixels short.

Ian1971
  • 3,666
  • 7
  • 33
  • 61
0

Simply check it with two lines of code:

if (UI_USER_INTERFACE_IDIOM()==UIUserInterfaceIdiomPad)
    {
        NSLog(@"Call your iPad xib file");
    }
    else
    {
        NSLog(@"Call your iPhone xib file");
    }
Warpling
  • 2,024
  • 2
  • 22
  • 38
Ajay Sharma
  • 4,509
  • 3
  • 32
  • 59