How to make it so toolbar height is resized as the same size as the navigation bar in iPhone
===

Was wondering if anyone knew how to make it so the toolbar height was resized to the same height as the navigation bar (along with any buttons there might be) when rotated to the landscape position? The toolbar should be resized to the same size and location as it was originally in the portrait position. Someone posted an answer here: [http://stackoverflow.com/questions/6378125/auto-resize-height-of-uitoolbar-in-landscape-orientation][1]

There is a similar question and answer to a post with the following code (see below). However this does not put it at the bottom of the screen, it just places it in the middle:

    - (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration
    {
        CGRect navigationToolbarFrame = self.navigationController.navigationBar.frame;
        CGRect customToolbarFrame = CGRectOffset(navigationToolbarFrame, 0.0, navigationToolbarFrame.size.height);
        [UIView animateWithDuration:duration animations:^{
            self.customToolbar.frame = customToolbarFrame;     
        }];
    }


  [1]: http://stackoverflow.com/questions/6378125/auto-resize-height-of-uitoolbar-in-landscape-orientation


Any help would be greatly appreciated