How to remove gap between navigation bar and text view

Discussion in 'iOS Programming' started by mikezang, Nov 29, 2010.

  1. mikezang macrumors 6502a

    Joined:
    May 22, 2010
    Location:
    Tokyo, Japan
    #1
    I made a Universal app, SplitView Controller with default master and detail controllers is used in iPad and Navigation Controller with the same master and detail controllers is used in iPhone.

    The default detail controller of Split Controller has a toolbar, you will find them at first three pictures.

    I hide that toolbar when in iPhone, but there is gap between navigation bar and text view, what can I remove this gap?
     

    Attached Files:

  2. forum user macrumors regular

    Joined:
    Aug 28, 2008
    #2
    I have seen this, but I cannot remember what I did to remove the gap (third picture on the right)

    Either it was that I had used a showModalView inside a navigation controller (instead of pushViewController ) or alternatively, the xib did have its own navigation bar on top.
     
  3. mikezang thread starter macrumors 6502a

    Joined:
    May 22, 2010
    Location:
    Tokyo, Japan
    #3
    Can you tell me why there is gap? I don't know why:(
     
  4. cnstoll macrumors 6502

    Joined:
    Aug 29, 2010
    #4
    Both of forum_user's suggestions on why the bar is there are valid, depending on how you've set up your view controller's. It's either one of those, or you're not successfully hiding the toolbar.
     
  5. mikezang thread starter macrumors 6502a

    Joined:
    May 22, 2010
    Location:
    Tokyo, Japan
    #5
    I just set origin.y To 0, now the gap is removed.
     

Share This Page