View Full Version : creating menus like the ones in comic readers and picture viewers
Chirone
Sep 14, 2009, 06:09 PM
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?
dejo
Sep 14, 2009, 06:33 PM
Look at UINavigationController's setNavigationBarHidden:animated: and setToolbarHidden:animated: instance methods.
Chirone
Sep 14, 2009, 10:52 PM
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/geek-journal/iphone-sdk-uinavigationcontroller-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:
[window addSubview:[navigationController view]];
and went:
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
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.