首页 > 其他 > 详细

UITabBar 详解

时间:2014-04-20 16:30:57      阅读:506      评论:0      收藏:0      [点我收藏+]

1、push时,将tabar隐藏,方法1,在push之前,加入如下代码:

bubuko.com,布布扣
-(IBAction)btnOnClicked:(id)sender
{
    SQVideoListViewController *videoListViewController = [[[SQVideoListViewController alloc]init]autorelease];
    videoListViewController.type   = [sender tag];
    self.hidesBottomBarWhenPushed = YES;    //用于隐藏tabBar
    [self.navigationController pushViewController:videoListViewController animated:YES];
    self.hidesBottomBarWhenPushed = NO;
}
bubuko.com,布布扣

方法二,在需要隐藏的controller中添加:

bubuko.com,布布扣
 self.tabBarController.tabBar.hidden = YES;
bubuko.com,布布扣

 

UITabBar 详解,布布扣,bubuko.com

UITabBar 详解

原文:http://www.cnblogs.com/ygm900/p/3675965.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!