I am trying to animate my uitoolbar. I am trying to expand and contract my uiview. i want the toolbar to animated along with the view. But here the uitoolbar expands and contracts first then the uiview is animating. So the uitoolbar frame is changing according to the rect but its not animating. can somebody please tell me if how to animate uitoolbar. Along with the toolbar i also want to animate the tabbar. how should i go about doing this.
In my view i have written the following code :
[UIView animateWithDuration:1.0 animations:^(void){
[recordDetailView setFrame:CGRectMake(0.0, 0.0, self.view.frame.size.width, recordDetailView.frame.size.height)];
[normalModeToolbar setFrame:CGRectMake(0.0, 0.0,self.view.frame.size.width, 49)];
[self.view bringSubviewToFront:recordDetailView];
} completion:^(BOOL finished){
}
];