一、删除系统自带的tabbar
在开发中,我们时常会需要自己定义tabbar,使用自定义tabbar时,返回或者跳转时会遇到tabbar重影的现象,这个时候我们需要将系统的tabbar
// 实现navigationController的代理方法
- (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated
{
// 删除系统自带的tabBarButton
for (UIView *tabBar in self.tabBarController.tabBar.subviews) {
if ([tabBar isKindOfClass:NSClassF