I have a problem with tabbarcontroller.Im working with storyboard and Im using navigation controller between tabbarcontroller and viewcontroller.and also i have login page..From login page, i want to go directly to viewcontroller which is 2.tabbarcontroller..But when im doing this i cant see tabbar controller..What can be the problem? What is your suggestion?
self.tabBarController = [[UITabBarController alloc] init];
UIImage* tabBarBackground = [UIImage imageNamed:@"Tab_bar_bkg.png"];
[[UITabBar appearance] setBackgroundImage:tabBarBackground];
[[UITabBarItem appearance] setTitleTextAttributes:
[NSDictionary dictionaryWithObjectsAndKeys:
[UIColor whiteColor], UITextAttributeTextColor,
[NSValue valueWithUIOffset:UIOffsetMake(0, 1)], UITextAttributeTextShadowOffset,
[UIFont fontWithName:@"Helvetica" size:0.0], UITextAttributeFont,
nil] forState:UIControlStateNormal];
Thank you in advance..
Finally I found solution for this. The problem was instead of using this:
[self dismissModalViewControllerAnimated:YES];
I have used that one:
[self presentModalViewController:controller animated:YES]
Thank you so much for your help...