Posts

Showing posts with the label animations

iOS: Animating a View (Sample of hiding a UITabBarController view)

The UIView class has it's animation methods like beginAnimations, commitAnimations, animateWithDuration, and setAnimationDuration. You can use this methods to animate such specific view. Below is an example of hiding a UITabBarController view and retain the non-UITabBar class views.           [ UIView beginAnimations : nil  context : NULL ] ;      [ UIView setAnimationDuration : 0.5 ] ;          //    CGRect temp = appDelegate.tabBarController.view.frame;      //    temp.origin.y += 100;          for ( UIView  * view  in   appDelegate.tabBarController.view.subviews )      {          if ( [ view isKindOfClass : [ UITabBar class ] ] )          {              [ view setFrame : CGRectMake ( - 320 , view.frame.origin....