custom tabbar problem in navigation
<pre><code>@interface CustomTabbarController : UITabBarController
{

}
@end
-(void)tabBarControllerView{
    tabBarController.navigationController.navigationBarHidden=YES;
    tabBarController.delegate=self;
    [window addSubview:tabBarController.view];
    [window makeKeyAndVisible];

}   

- (BOOL)tabBarController:(UITabBarController *)tabBarController shouldSelectViewController:(UIViewController *)viewController{  
    [(UINavigationController*) viewController popToRootViewControllerAnimated:NO];
    return YES;
}


-(void)call{
[((className*)[[UIApplication sharedApplication]delegate]) tabBarControllerView];
    ((className*)[[UIApplication sharedApplication]delegate]).tabBarController.view.hidden = NO;
    [((className*)[[UIApplication sharedApplication]delegate]).window bringSubviewToFront:((BP_LogAppDelegate*)[[UIApplication sharedApplication]delegate]).tabBarController.view];
    [((className*)[[UIApplication sharedApplication]delegate]).tabBarController viewWillAppear:YES];
</code></pre>
