creating menus like the ones in comic readers and picture viewers

Discussion in 'iOS Programming' started by Chirone, Sep 14, 2009.

  1. Chirone macrumors 6502

    Joined:
    Mar 2, 2009
    Location:
    NZ
    #1
    if you see such apps where you can browse pictures you tap the screen and a toolbar at the top and bottom scroll on screen

    how does one go about doing this?
     
  2. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #2
    Look at UINavigationController's setNavigationBarHidden:animated: and setToolbarHidden:animated: instance methods.
     
  3. Chirone thread starter macrumors 6502

    Joined:
    Mar 2, 2009
    Location:
    NZ
    #3
    thanks for the suggestion

    i know that it works because at some point i did get it to work, just that two would appear, one on top and the other at the bottom. the one on top wasn't hiding but the one at the bottom was. no idea how they choose where they were going to appear, or why two appeared.

    eventually i gave up and reverted back to google and found this:
    http://www.raddonline.com/blogs/gee...vigationcontroller-hiding-the-navigation-bar/

    which, while it worked fine, i have no idea how to make it work with my own navigation control from IB

    following the same pattern this guy used:
    Code:
    	[window addSubview:[navigationController view]];
    
    and went:
    Code:
    testNavi = [[TestNavigation alloc] initWithNibName: @"TestNavigation" bundle: [NSBundle mainBundle]];
    	[window addSubview: [testNavi view]];
    
    where testNavi is an instance of UINavigationController
    but none of the buttons on testNavi appeared in the application
     

Share This Page