我有一个 UITabBarController,里面有两个 UIViewController。如何初始化 UIViewController 不显示部分位于 UITabBar 下方?
编辑:
AppDelegate.m:
ViewController *viewController = [[ViewController alloc] init];
self.tabController = [[UITabBarController alloc] init];
[self.tabController setViewControllers:@[viewController] animated:YES];
self.window.rootViewController = self.tabController;
视图控制器.m:
- (void)viewDidLoad {
[super viewDidLoad];
[self.view addSubview: [[MyGraphicView alloc] initWithFrame:[self.view bounds]]];
}