项目用到了RDVTabBarController框架,在跳转到第二个vc时,底部的TabBar不隐藏
解决办法:
第一导入:
#import "RDVTabBarController.h"
第二:
-(void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
[[selfrdv_tabBarController] setTabBarHidden:YESanimated:YES];
}
// 返回第一个vc时显示
- (void)viewWillDisappear:(BOOL)animated {
[super viewWillDisappear:animated];
[[selfrdv_tabBarController] setTabBarHidden:NO animated:YES];
}