UITabBarController 重叠

UITabBarController 建议 item 的切图只包含图片,文字用程序实现,否则很重影。

-(void)removeTabBarBtn{

for(UIView*tabBarinself.tabBar.subviews){

if([tabBarisKindOfClass:NSClassFromString(@"UITabBarButton")]){

[tabBarremoveFromSuperview];

        }

    }

}


// 重影[[NSNotificationCenterdefaultCenter]addObserver:selfselector:@selector(removeTabBarBtn)name:@"removeTabBarBtn"object:nil];


-(void)dealloc{[[NSNotificationCenterdefaultCenter]removeObserver:selfname:@"removeTabBarBtn"object:nil];}

你可能感兴趣的:(UITabBarController 重叠)