tabBarController 自定义高度

    self.tabBarController = [[[UITabBarController alloc] init] autorelease];
   
    //自定义tabBarController高度
    self.tabBarController.tabBar.frame = CGRectMake(0, self.window.frame.size.height-44, 320, 44);
    UIView * transitionView = [[self.tabBarController.view subviews] objectAtIndex:0];
    //transitionView.frame.size.height = 416;
    //更改主VIEW高度,防止出现缝隙
    [transitionView setFrame:CGRectMake(0, 0, 320, 436)];
   
    self.tabBarController.viewControllers = @[viewController1, viewController2,viewController3, viewController4,viewController5];
    self.window.rootViewController = self.tabBarController;

你可能感兴趣的:(controller)