IB - what's going on with Y offset?

Discussion in 'iOS Programming' started by teek, Mar 17, 2010.

  1. teek macrumors member

    teek

    Joined:
    Feb 12, 2008
    Location:
    Norway
    #1
    I've got a new UIView set up in IB, dragged on another UIView which i place at the top and make it's height 110 pixels. Next I dragged a UITableView and placed it below the UIVew, at Y=111 and dragged it all the way to the bottom.

    When I run this, the Y offset is all wrong, the top 20? pixels are hidden under the status bar at the top. What am I doing wrong ? OH yeah, also the bottom 20? pixels are not used by the table view.
     
  2. KoolStar macrumors demi-god

    KoolStar

    Joined:
    Oct 16, 2006
    Location:
    Kentucky
    #2
    Make sure you are simulating the status bar in interface builder.
     
  3. teek thread starter macrumors member

    teek

    Joined:
    Feb 12, 2008
    Location:
    Norway
    #3
    I have tried, but I've noticed that IB is acting weird on me. I can re-arrange things and it doesn't behave as I expect. I close IB and restart it and everything looks the way it should. I'm starting to think IB is a little immature, for the iPhone SDK anyway.
     

Share This Page