将单个UIViewController添加到tabBarController

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了将单个UIViewController添加到tabBarController相关的知识,希望对你有一定的参考价值。

  1. #import "RegisterViewController.h"
  2.  
  3. //
  4.  
  5.  
  6. UIViewController *viewController3 = [[[RegisterViewController alloc] initWithNibName:@"RegisterViewController" bundle:nil] autorelease];
  7. [self.tabBarController setViewControllers:[self.tabBarController.viewControllers arrayByAddingObject:viewController3] animated:YES];

以上是关于将单个UIViewController添加到tabBarController的主要内容,如果未能解决你的问题,请参考以下文章