NIB file

0 views
Skip to first unread message

sachin gupta

unread,
Dec 19, 2009, 7:16:00 AM12/19/09
to iphone-appd...@googlegroups.com
Hello All,

I am facing strange problem.

I have placed a button at the bottom of the NIB file.
But as I run the code button appears a bit upward (Not at bottom of screen of Iphone simulator).

Did anybody face such problem?

Thanks

Sukima

unread,
Dec 20, 2009, 11:14:17 AM12/20/09
to iPhone Application Development Auditors
The IB attempts to offer best case senario but it does not represent
the correct screen location. If you have a navigation view or tab view
then these will affect the placement of the objects in your nib. The
best way is to either know the exact height of the parent controller
object (like the navigation bar or tab bar) and adjust the controls in
the nib accordingly. It looks wonky in IB but works fine when you run
the program. IB attempted to put placeholders there to help with this
but they screwed up the implementation as far as I can tell. I remove
all the guides and manually place the objects. It leaves empty space
where the guides used to be.

Hope that helps. Maybe someone can better explain the IB
implementation of guides better.

Reply all
Reply to author
Forward
0 new messages