码迷,mamicode.com
首页 > 其他好文 > 详细

隐藏自定义的tabbar

时间:2016-01-11 17:43:11      阅读:209      评论:0      收藏:0      [点我收藏+]

标签:

由controllerA推出controllerB

A中:

- (void)viewWillAppear:(BOOL)animated {

    [super viewWillAppear:animated];

    UIView *tabbar = [self.tabBarController.view viewWithTag:1000];

    tabbar.hidden = NO;

    self.tabBarController.tabBar.hidden = YES;

}

 

- (void)push {

  BViewController *B = [[BViewController alloc] init];

  B.hidesBottomBarWhenPushed = YES;

  [self.navigationController pushViewController:B animated:YES];

}

B.中

- (void)viewWillAppear:(BOOL)animated {

    [super viewWillAppear:animated];

    UIView *tabbar = (UIView *)[self.tabBarController.view viewWithTag:1000];

    tabbar.hidden = YES;

    self.tabBarController.tabBar.hidden = YES;

}

隐藏自定义的tabbar

标签:

原文地址:http://www.cnblogs.com/siasyl/p/5121791.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!