0

So I have done several apps where I have done something like this in the appDidFinishLaunching: method

[self.window addSubview:someView.view];
[self.window makeKeyAndVisible];

This has worked in the past, but for some reason in my most recent endeavor, when I add the subview, there is a space at the bottom, until I rotate the device. The space looks like it is the size of the info bar at the top. My guess is the frame is not updating based on the device orientation and location of the info bar. I am not manipulating the view in any other way other then adding it as a subview. Anyone have any idea what might be going on?? Thanks..!

Check out this screenshot of it in action...

gabaum10
  • 3,769
  • 3
  • 48
  • 89

1 Answers1

0

I Understand that someView is a controller? check if you return anything in the controller for function

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation;
Michal
  • 133
  • 6
  • Do you hide status bar in appDidFinishLaunching. If so make sure you do the same in .list file UIStatusBarHidden or similat to NO – Michal Feb 23 '11 at 15:36
  • No, my status bar is always shown. I never adjusted that value. I am really confused why it appears to think it's on the bottom? Have you looked at the screen I posted? – gabaum10 Feb 23 '11 at 15:40
  • BTW, the view was indeed created in IB, and set to "Scale to Fill" – gabaum10 Feb 23 '11 at 15:40
  • Is it possible that accidentally you edited window view in IB or change TabController frame – Michal Feb 23 '11 at 15:49
  • Naw, the window view is unchanged from the default, and I don't believe I modified the TabBar frame... – gabaum10 Feb 23 '11 at 15:55
  • See solution below. Thanks for the help ;) – gabaum10 Feb 23 '11 at 15:57