Interface Builder related qestion

Discussion in 'iPhone/iPad Programming' started by spire.bt, Jun 15, 2010.

  1. macrumors newbie

    Joined:
    Apr 8, 2010
    #1
    I have a set the view in the interface builder but in the iphone simulator it comes upside-down i.e. when i set the view to have a top bar, in the simulator the top bar is shown at the bottom of the view. someone knows what can cause this ??


    [​IMG]

    image from the view
     
  2. macrumors 6502a

    Joined:
    Dec 2, 2008
    #2
    Are you sure that's a bar on the bottom of the simulator? It looks like it's just the background of the view. Possibly the bar is not being shown in the simulator, and the rest of the view is then moved up (from where it is in Interface Builder), leaving the white space at the bottom. If this is the case, the white space at the bottom will be exactly the same size as the (missing) bar.
     
  3. thread starter macrumors newbie

    Joined:
    Apr 8, 2010
    #3
    as you can see from the image I have selected a gray bar button with prompt from the attributes and on the view is shown OK but in the simulator is only the space for the button but on the bottom side :confused:
    I need some ideas what could it be, I dont know where to search for the problem
     
  4. macrumors 68030

    PhoneyDeveloper

    Joined:
    Sep 2, 2008
    #4
    How do you create the top bar? What is the autoResizeMask for the black view? Can you show the entire view hierarchy for this view controller in the IB nib window?
     
  5. macrumors demi-god

    KoolStar

    Joined:
    Oct 16, 2006
    Location:
    Kentucky
    #5
    My guess is that you are not actually creating the bar. When you select those options in IB they are only simulated to show you how much visible view you have after the components are actually used. You may want to look at the documentation on navigation controllers. Just because you simulate them in IB doesn't mean it creates them for you. You still need to create the navigation controller either in code, in another nib, or the same nib and make that nib contain a navigation controller.
     
  6. thread starter macrumors newbie

    Joined:
    Apr 8, 2010
    #6
    I see that you dont understand my question ... I don't need a top bar I just used it to show in the image that all the things I put UP in the view are shown DOWN in the simulator, the thing is that I have a status bar space (the gray one with the battery indicator) that is shown UP in the view and in the simulator the space for it is DOWN. So the simulator's status bar is taking space from my view


    the status bar up in the view and the white space for it down in the simulator
     
  7. macrumors 68030

    PhoneyDeveloper

    Joined:
    Sep 2, 2008
    #7
    You didn't answer my question:

    What is the autoResizeMask for the black view?

    This is probably the problem.
     
  8. thread starter macrumors newbie

    Joined:
    Apr 8, 2010
    #8
    the auto sizing is same on all the xib files so I don't see any problem in that but if u want i can send u the files
     

Share This Page