0

我对 tabbarcontroller 有问题。我正在使用故事板,我在 tabbarcontroller 和 viewcontroller 之间使用导航控制器。而且我有登录页面..从登录页面,我想直接转到 viewcontroller 2.tabbarcontroller..但是当我这样做我看不到标签栏控制器..可能是什么问题?你的建议是什么?

  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];

先感谢您..

4

1 回答 1

0

最后我找到了解决方案。问题是而不是使用这个:

 [self dismissModalViewControllerAnimated:YES];

我用过那个:

[self presentModalViewController:controller animated:YES]

非常感谢你的帮助...

于 2012-10-30T11:09:58.567 回答