Need the help in creating the TabBarController at run time in Phone
===

I trying to create the tabbarcontroller at run time .Getting exhausted But Not get any solution  . It showing me blank tabbar not showing the all tabs which i am trying to create
I am trying like this 




    UITabBarController *tabController = [[UITabBarController alloc] init];
        UIViewController *detaileView ;
        for(int i=0;i<[PageValue count];i++)
        {
    		
            
            TPages*TP=(TPages*)[PageValue objectAtIndex:i];
            if(ListTableview==TP.Type)
            {
                Controller1*view1=[[Controller alloc] initWithNibName:@"Controller1" bundle:nil];
    //            [self.view addSubview:view1.view];
                detaileView = view1;
                
             
                
            }
            if(Tableview==TPM.Type)
            {
                Controller2*view2=[[Controller2 alloc] initWithNibName:@"Controller2" bundle:nil];
                
              
                detaileView = view2;
             
    
           }
            
            if(HtmlTableview==TPM.Type)
            {
                Controller3*view3=[[Controller3 alloc] initWithNibName:@"Controller3" bundle:nil];
                detaileView = view3;
    
                
            }   
         
        }
        NSArray *Controllers = [[NSArray alloc]initWithObjects:self.navigationController, detaileView, nil];
      
    
        // Attach to tab bar controller
        [tabController setViewControllers: Controllers];
        [self presentModalViewController:tabController animated:YES];

  I need help very  urgently .
Thanks in advance 
