Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

mikezang

macrumors 6502a
Original poster
May 22, 2010
939
41
Tokyo, Japan
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?
 

Attachments

  • SnapShot 2010-11-29 at 21.48.23.jpg
    SnapShot 2010-11-29 at 21.48.23.jpg
    88.1 KB · Views: 174
  • SnapShot 2010-11-29 at 21.47.54.jpg
    SnapShot 2010-11-29 at 21.47.54.jpg
    81.8 KB · Views: 140
  • SnapShot 2010-11-29 at 21.55.23.jpg
    SnapShot 2010-11-29 at 21.55.23.jpg
    70.7 KB · Views: 142
  • SnapShot 2010-11-29 at 21.48.01.jpg
    SnapShot 2010-11-29 at 21.48.01.jpg
    70.2 KB · Views: 118
  • SnapShot 2010-11-29 at 22.03.11.jpg
    SnapShot 2010-11-29 at 22.03.11.jpg
    78.9 KB · Views: 116
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.
 
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.
Can you tell me why there is gap? I don't know why:(
 
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.
 
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.
I just set origin.y To 0, now the gap is removed.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.