how to have tab bar in the navigation?
I am new to the iphone development.Currently  I am doing a project using TABBED APPLICATION TEMPLATE which contains 4 tabs in which one is having a list of items in the table view and on clicking the table cell i would like to give a description page.I know that navigation have to be used and i am successful in bringing out the navigation but the problem now is i would like to have the tab bar in the detail page also .But in mine its not coming .
Right now i am using this code to bring the navigation 

In didfinishlaunching in appdelegate 

    self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease];
    UIViewController *viewController1 = [[[cardsAvailable1 alloc] initWithNibName:@"cardsAvailable1" bundle:nil] autorelease];
    UIViewController *viewController2 = [[[fetchcard1 alloc] initWithNibName:@"fetchcard1" bundle:nil] autorelease];
    UIViewController *viewController3 = [[[registration alloc] initWithNibName:@"registration" bundle:nil] autorelease];
    UIViewController *viewController4 = [[[logintab alloc] initWithNibName:@"logintab" bundle:nil] autorelease];
   
    
    self.tabBarController = [[[UITabBarController alloc] init] autorelease];
    self.tabBarController.viewControllers = [NSArray arrayWithObjects:viewController1, viewController2,viewController3,viewController4, nil];
    self.tabBarController.selectedIndex = 3;

    navigationController = [[UINavigationController alloc]
                            initWithRootViewController:self.tabBarController];
    self.window.rootViewController = self.tabBarController;
    [self.window addSubview:navigationController.view];
    
    [self.window makeKeyAndVisible];

[self.navigationController pushViewController:self.detailViewExample animated:YES];


and for the navigation on selection



What is the correct method to do it?
Can any one suggest me solution for this?
how to have tab bar in the navigation?
===

I am new to the iphone development.Currently  I am doing a project using TABBED APPLICATION TEMPLATE which contains 4 tabs in which one is having a list of items in the table view and on clicking the table cell i would like to give a description page.I know that navigation have to be used and i am successful in bringing out the navigation but the problem now is i would like to have the tab bar in the detail page also .But in mine its not coming .
Right now i am using this code to bring the navigation 

In didfinishlaunching in appdelegate 

    self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease];
    UIViewController *viewController1 = [[[cardsAvailable1 alloc] initWithNibName:@"cardsAvailable1" bundle:nil] autorelease];
    UIViewController *viewController2 = [[[fetchcard1 alloc] initWithNibName:@"fetchcard1" bundle:nil] autorelease];
    UIViewController *viewController3 = [[[registration alloc] initWithNibName:@"registration" bundle:nil] autorelease];
    UIViewController *viewController4 = [[[logintab alloc] initWithNibName:@"logintab" bundle:nil] autorelease];
   
    
    self.tabBarController = [[[UITabBarController alloc] init] autorelease];
    self.tabBarController.viewControllers = [NSArray arrayWithObjects:viewController1, viewController2,viewController3,viewController4, nil];
    self.tabBarController.selectedIndex = 3;

    navigationController = [[UINavigationController alloc]
                            initWithRootViewController:self.tabBarController];
    self.window.rootViewController = self.tabBarController;
    [self.window addSubview:navigationController.view];
    
    [self.window makeKeyAndVisible];

[self.navigationController pushViewController:self.detailViewExample animated:YES];


and for the navigation on selection



What is the correct method to do it?
Can any one suggest me solution for this?