I was looking for a similar functionality in may application. In my case, I just wanted to slide the Navigation bar up/down (e.g., Maps search, when clicked on search bar, the nav bar slides down)
The way, I did it, I access the navigation Controller property of my view controller and just offset the views to either move up or down inside a animation block.
Code:
-(void) setViewMoveUp:(BOOL) value
{
[UiView beginAnimations: nil context: NULL];
[UiView setAnimationDuration: 0.3];
NSArray *subViews = [self.navigationController.view subViews];
foreach (UIView *view on subViews)
{
if (value)
// do something
else
// do something
}
[UIView commitAnimations];
}