views:

15

answers:

0

hi iam currently working in IPHONE application ,in which NavigationController is a rootViewcontroller .

AppDelegatefile:== UINavigtionController *nav=[[UINavigationController alloc]initWithRootviewcontroller:ViewController];

[window addsubView:nav.view];

After navigating 5 screen(view) later my application need tabbar controller, so i just add Tabbbarcontroller over my viewController. Histroy *his=[[history alloc]init]; Contact *con =[[Contact alloc]init]; Help hep=[[Help alloc]init]; tabController =[[UITabBarController alloc] init];
NSArray
controllers = [NSArray arrayWithObjects:his,con,hep, nil]; tabController.viewControllers = controllers; tabController.delegate = self; navContactTab = [[UINavigationController alloc] initWithRootViewController:tabController]; navContactTab.view.frame=self.view.frame;

[self.view addSubview:navContactTab.view];

my application work perfectly but every time the view inside tbabar are not reloads . plz out above code where iam wrong plz give me help or any code snnipet. thanks in advance