iOS自定义tabbar后popToRootViewContriller和poptoviewcontroller时出现两个tabbar 的解决办法
问题:iOS自定义tabbar后popToRootViewContriller和poptoviewcontroller时出现两个tabbar
1.自定义代码:
- (void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
// 删除系统自动生成的UITabBarButton
[self removeTabBarButton];
}
-(void) removeTabBarButton {