Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jul 13, 2008, 07:42 PM   #1
Korolen
macrumors newbie
 
Join Date: Mar 2008
UIToolbar and UINavigationController

Hello,

As far as I can see, Apple has provided no easy way to integrate a UIToolbar at the bottom of the screen. As opposed to UITabBarController which is easy to place on the bottom of the screen and have tied to view controllers, UIToolbar is a normal view just like a UIButton or UISwitch. Thus, it must be manually placed at the bottom of the screen by placing it on a UIView in the view hierarchy.

This is not especially hard, but is definitely messy. And it only gets worse when coupled with a UINavigationController. I have three levels of drilling in: Categories, Items, and then Item Details. The toolbar should remain stationary when transitioning from Categories to Items, but should slide away with the Items when transitioning from Items to Item Details.

I believe that Mail used to do this (hiding the toolbar on the Accounts page) prior to 2.0. I know of some third-party apps that do this (Things). But the only implementation I can come up with is some serious kludges.

Does anyone here have any advice for keeping the code and nibs clean and as kludge-free as possible? Do you think that the apps out there with this functionality do anything more than simple kludges?

Thanks for your time,

– Tom
Korolen is offline   0 Reply With Quote
Old Jul 14, 2008, 10:58 AM   #2
phxbbrown
macrumors newbie
 
Join Date: Jun 2008
Location: Phoenix, AZ
There was an earlier thread about this, but I was never able to get it working satisfactorily without attaching the toolbar to the window at the same level as the navigation controller. If you have any luck, I'd love to find out how you did it.

http://forums.macrumors.com/showthread.php?p=5622891

Bill
phxbbrown is offline   0 Reply With Quote
Old Jul 15, 2008, 12:59 AM   #3
Korolen
Thread Starter
macrumors newbie
 
Join Date: Mar 2008
Quote:
Originally Posted by phxbbrown View Post
There was an earlier thread about this, but I was never able to get it working satisfactorily without attaching the toolbar to the window at the same level as the navigation controller. If you have any luck, I'd love to find out how you did it.

http://forums.macrumors.com/showthread.php?p=5622891

Bill
Well, right now I simply leave the Navigation Controller in IB unattached to anything and pragmatically attach it's view it to the UIView where the toolbar is, which works fine... but as I said, I also need the toolbar to slide away with the view sometimes. For that to happen, I literally move the toolbar from the navigation controller's sibling to the top view controller's view. It's quite a kludge and it introduces a number of bugs... but it does work.
Korolen is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Switch between UIViewController and UINavigationController edcruise iPhone/iPad Programming 1 Mar 6, 2011 09:41 PM
UINavigationController and rotation Tiiba iPhone/iPad Programming 0 Dec 3, 2010 06:06 PM
UIToolbar in UINavigationController not showing any items Bruno Silva iPhone/iPad Programming 1 Jun 12, 2010 08:38 PM
UIToolBar and setItems with animation Sergio10 iPhone/iPad Programming 3 Feb 4, 2010 10:55 AM
UITabBarController and UINavigationController together??? belsokar iPhone/iPad Programming 5 Jan 7, 2009 09:53 AM


All times are GMT -5. The time now is 05:33 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Privacy / DMCA contact / Affiliate and FTC Disclosure
Copyright 2002-2013, MacRumors.com, LLC