views:

81

answers:

0

Hi iProgrammers,

In my app , i have 5 tabs at the bottom,namely home,ask,tip,inbox,disclaimer...In my home view...there is an botton,clicking on which flips the view to in the same home view tab...in the new view i have a picker in which on selecting the values takes me to another view through flippin in the same tab ..in the 2nd new view i have a button called "ask a doc"....clicking on this "Ask A Doc" button should change the tabbselection also but it does not change the tabbar selection but only displays the "ask A Doc" View.

This is the receiving action on clicking that ASk a Doc button on the 2nd view

-(IBAction)AskaDoc:(id)sender { aAskController = [[AskADocViewController alloc] initWithNibName:@"AskADocViewController" bundle:nil];

[UIView beginAnimations:nil context:NULL];  
[UIView setAnimationDuration:1.0];  
[UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:self.view cache:NO];  

[self.view addSubview:aAskController.view];  

[UIView commitAnimations];
//aAskController = [[AskADocViewController alloc] initWithNibName:@"AskADocViewController" bundle:nil];
//[self.navigationController pushViewController:aAskController animated:YES];
//[aAskController release];
//[self.tabBarController setSelectedIndex:1];

}