views:

1258

answers:

1

is it possible to hide it with animation ?

+3  A: 

A UITabBar inherits from UIView, so you can hide it and animate it like you would with a standard UIView.

- (void) hideTheTabBarWithAnimation:(BOOL) withAnimation {
    if (NO == withAnimation) {
        [theTabBar setHidden:YES];
    } else {
        [UIView beginAnimations:nil context:nil];
        [UIView setAnimationDelegate:nil];
        [UIView setAnimationDuration:0.75];

        [theTabBar setAlpha:0.0];       

        [UIView commitAnimations];
    }
}
Guillaume
Thanks for your advise Guillaume
RAGOpoR
You are welcome. Glad to help :)
Guillaume