How to set the Navigation Bar Color of the Tab Bar Configure Menu

后端 未结 8 1178
一生所求
一生所求 2021-02-03 21:30

removed dead ImageShack link

As you can see the view I need to change is the provided view to customize the tabbar order. I want to change the color of the navi

8条回答
  •  终归单人心
    2021-02-03 21:47

    Building off of the answer given by user486217, this may be even more defensively-coded:

    id modalViewCtrl = [controller.view.subviews objectAtIndex:1];  
    if([modalViewCtrl isKindOfClass:NSClassFromStrin(@"UITabBarCustomizeView")] == YES) {
        id navigationBar = [[modalViewCtrl subviews] objectAtIndex:0];
        if ([navigationBar isKindOfClass:[UINavigationBar class]]) {
            ((UINavigationBar*)navigationBar).tintColor = [UIColor redColor];
        }
    }}
    

提交回复
热议问题