Push时隐藏Tabbar

早就写了,不知咋地找不到了 = =b 用到了没在帖子里搜到又来发一帖~
可以在要隐藏的ViewController里的init方法里加上:
self.hidesBottomBarWhenPushed=YES;  
或者假设定义的ViewController是vc,那么应该加这一句:
vc.hidesBottomBarWhenPushed=YES

[vc setHidesBottomBarWhenPushed:YES];

评论

此博客中的热门博文

使__attribute__((annotate("xxx")))能作用于OC函数

viewWillAppear不执行的解决办法

iOS中使用xpc/xpc.h