|Oct 20, 2009, 05:29 AM||#1|
Strange placement of views within window (views seem to ignore status bar)
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
|Oct 20, 2009, 05:37 AM||#2|
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.
|Thread Tools||Search this Thread|
|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 01:33 AM|
|Strange placement of icons with updates||drenline||iPad Hacks||2||Jul 13, 2011 02:25 AM|
|Just put in 8GB RAM, don't notice much difference, URLs seem to load slower?||alexreich||Mac mini||6||Jun 19, 2011 03:18 AM|
|Strange Placement of bluetooth logo on top bar||i0Nic||Mac Basics and Help||2||Oct 26, 2006 09:46 AM|
All times are GMT -5. The time now is 06:42 PM.