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
2010-02-13 12:37:18
Thanks for your advise Guillaume
RAGOpoR
2010-02-13 13:19:14
You are welcome. Glad to help :)
Guillaume
2010-02-13 14:13:31