//http://groups.google.com/group/cocoa-unbound/msg/78d646715a407466 @implementation UIView(MCAnimations) - (void)simulateNavControllerAnimateOn { self.alpha = 0.0f; [UIView beginAnimations:@"Nav Bar Simulate On" context:nil]; [UIView setAnimationDuration:0.5f]; [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut]; self.alpha = 1.0f; [UIView commitAnimations]; } - (void)simulateNavControllerAnimateOff { [UIView beginAnimations:@"Nav Bar Simulate Off" context:nil]; [UIView setAnimationCurve:UIViewAnimationCurveEaseOut]; self.transform = CGAffineTransformTranslate(self.transform, +[UIScreen mainScreen].applicationFrame.size.width, 0.f); [UIView commitAnimations]; [self performSelector:@selector(removeFromSuperview) withObject:nil afterDelay:0.6]; } @end