Auto Layout and “Hide bottom bar when pushed”

后端 未结 10 1962
Happy的楠姐
Happy的楠姐 2021-01-30 12:54

My app\'s (simplified) structure is this:

UITabBarController with one UINavigationController holding a UITableViewController as ro

10条回答
  •  逝去的感伤
    2021-01-30 13:40

    -(void)viewWillAppear:(BOOL)animated {
        [super viewWillAppear:animated];
        self.tabBarController.tabBar.hidden = NO;
        self.tabBarController.tabBar.alpha = 0.0;
        [UIView animateWithDuration:.3 animations:^{
            self.tabBarController.tabBar.alpha = 5.0;
        }];
    }
    

提交回复
热议问题