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

Similar Threads
thread Thread Starter Forum Replies Last Post
Strange status bar bug causing Lagg dsiiist iOS 7 15 Apr 29, 2014 02:51 PM
Strange status bar bug Am3r1ca16 iOS 7 5 Jul 29, 2013 03:59 PM
iPhone: How to stop status bar from showing location icon in status bar? Zmanbaseball2 Jailbreaks and iOS Hacks 7 Apr 11, 2013 07:14 PM
iPhone: BiteSMS.... closing quick reply window is not clearing notification on status bar. JrFreak Jailbreaks and iOS Hacks 3 Feb 9, 2013 03:02 PM
Strange symbol in status bar: AT&T network Zerozal iOS 6 16 Nov 7, 2012 01:20 PM

Forum Jump

All times are GMT -5. The time now is 12:53 PM.

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

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