首页 > 其他 > 详细

隐藏自定义的tabbar

时间:2016-01-11 17:42:12      阅读:85      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!