Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Oct 20, 2009, 04:29 AM   #1
blueeye
macrumors member
 
Join Date: Oct 2007
Strange placement of views within window (views seem to ignore status bar)

Hi all,

Whenever I've tried to create a "window based application" in Interface Builder I seem to get a weird displacement of the views within the window. They all seem to be shifted up by about 20px (actually the exact size of the status bar).
It seems that the window is ignoring the status bar when positioning the view or the view itself is ignoring the status bar.
I've tried playing with the alignment and status bar settings in Interface Builder but to no avail so I'm really a bit stumped.

Any ideas would be welcome
blueeye is offline   0 Reply With Quote
Old Oct 20, 2009, 04:37 AM   #2
blueeye
Thread Starter
macrumors member
 
Join Date: Oct 2007
I fixed the problem but I'm not entirely sure that this is the right way of going about it.

In the MainWindow.xib file I created a UIViewController outlet (and made it a "MyViewController" instead). Within that I selected Resize View from Nib and selected the Nib name. I then connected that to the app delegate and hey presto, the view no longer has strange placement.
I don't really understand why, however.

Any ideas?
blueeye is offline   0 Reply With Quote
Old Oct 20, 2009, 04:52 AM   #3
JimBobBennett
macrumors member
 
Join Date: May 2009
I got a similar thing with transparent status bars, views got adjusted as if the bar wasn't there. Changed to another type and all is good.
__________________
ChangingRoom - Your clothes shopping companion

Polar Bear Fishing - Jump on your ice flow and get fishing!
JimBobBennett is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Placement of Windows partition in a Mac Pro Fesco Windows, Linux & Others on the Mac 11 Sep 25, 2011 12:33 AM
Strange placement of icons with updates drenline iPad Hacks 2 Jul 13, 2011 01:25 AM
Just put in 8GB RAM, don't notice much difference, URLs seem to load slower? alexreich Mac mini 6 Jun 19, 2011 02:18 AM
Strange Placement of bluetooth logo on top bar i0Nic Mac Basics and Help 2 Oct 26, 2006 08:46 AM


All times are GMT -5. The time now is 02:47 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC