自定义tabbar问题

在viewWillAppear里面移除了系统的tabbarbutton,但是出现了黑色条

- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    //移除系统的tabBarButton
    for (UIView *tabBarButton in self.tabBar.subviews) {
        if ([tabBarButton isKindOfClass:NSClassFromString(@"UITabBarButton") ]) {
            [tabBarButton removeFromSuperview];
        }
    }
}

如图

怎么让这个黑色的view变回透明呢

阅读 1.7k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题