-(Void) hidetabbar :( bool) Hidden {
[Uiview beginanimations: Nil
Context: NULL];
[Uiview setanimationduration: 0];
Uiview * window = [uiapplication
Sharedapplication]. keywindow;
For (uiview * View
In self. tabbarcontroller. View. subviews)
{
If ([View
Iskindofclass: [uitabbar class])
{
If (hidden ){
[View setframe: cgrectmake (view. Frame. Origin. X, window. Height, view. Frame. Size. Width,
View. Frame. Size. Height)];
} Else {
[View setframe: cgrectmake (view. Frame. Origin. X, window. Height-49,
View. Frame. Size. Width, view. Frame. Size. Height)];
}
}
Else
{
If (hidden ){
[View setframe: cgrectmake (view. Frame. Origin. X, view. Frame. Origin. y,
View. Frame. Size. Width, window. Height)];
} Else {
[View setframe: cgrectmake (view. Frame. Origin. X, view. Frame. Origin. y,
View. Frame. Size. Width, window. Height-49)];
}
}
}
[Uiview commitanimations];
}