Setting Toolbar Items
<p>I try to set toolbar items in the navigationcontrollers top view. Seems to work in the subviews... but why not in the top view...any ideas? I get the add button... but not my custom button.</p>

<pre><code>- (void)configureToolbarItems {
UIBarButtonItem *addButtonItem = [[UIBarButtonItem alloc]
                                  initWithBarButtonSystemItem:UIBarButtonSystemItemAdd
                                  target:self action:@selector(addNewTaskButtonPressed)];   

//Green button
greenButton=[app makeGreenButton:self];
UIBarButtonItem *greenBarButton = [[UIBarButtonItem alloc] initWithCustomView:greenButton];

UIBarButtonItem *flexibleSpace = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace target:nil action:nil];

// Set our toolbar items    
[self setToolbarItems:[NSArray arrayWithObjects:
                       addButtonItem,flexibleSpace, greenBarButton, nil] animated:YES]; }               
</code></pre>

<p>This is the makeButton procedure... works fine in other views:</p>

<pre><code>-(UIButton*)makeGreenButton:(UIViewController*)caller {
UIButton *greenButton;
//load the image for yellow button
UIImage *greenButtonImage = [UIImage imageNamed:@"greenButton.png"];    
//create the button and assign the image
greenButton = [UIButton buttonWithType:UIButtonTypeCustom];
[greenButton setImage:greenButtonImage forState:UIControlStateNormal];
greenButton.showsTouchWhenHighlighted=TRUE; 
//set the frame of the button to the size of the image (see note below)
greenButton.frame = CGRectMake(0, 0, greenButtonImage.size.width*2, greenButtonImage.size.height*2);
//Add target
[greenButton addTarget:caller action:@selector(greenButtonReleased:) forControlEvents:UIControlEventTouchUpInside];
return greenButton; }
</code></pre>
