美文网首页iOS猿媛圈IOS
UITabBarController隐藏底部

UITabBarController隐藏底部

作者: FlyElephant | 来源:发表于2016-06-01 17:34 被阅读440次

UITabBarController中的每个子控制展示内容,如果从内容页面跳转到详情页面的时候需要隐藏底部,我们可以设置
hidesBottomBarWhenPushed属性:
<pre><code>FlyElephantController *controller=[[UIStoryboard storyboardWithName:@"CourseCenter" bundle:nil] instantiateViewControllerWithIdentifier:@"FlyElephantController"]; controller.hidesBottomBarWhenPushed=YES; [self.navigationController pushViewController:controller animated:YES];</code></pre>

相关文章

网友评论

    本文标题:UITabBarController隐藏底部

    本文链接:https://www.haomeiwen.com/subject/huvhdttx.html