在MoreNavigationController中更改文本颜色

Emi*_*mil 10 iphone textcolor uitabbarcontroller uitableview

我希望我现在不会重复任何线程,但我找不到我的问题的好答案.我有五个以上的标签,因此更多标签会自动显示.我设法改变了它的一些设置,例如标题,背景和导航栏的样式等等.我的问题是我无法弄清楚如何在更多的表视图中更改文本颜色.应用程序的其余部分在所有表视图中都带有黑色背景,带有白色文本.

使用代码行: tabBarController.moreNavigationController.topViewController.view.backgroundColor = [UIColor blackColor];

我得到一个黑色的背景.有关如何更改文字颜色的任何想法?

Sta*_*kiy 11

试试这个:

UITableView *view = (UITableView*)self.tabBarController.moreNavigationController.topViewController.view;
    if ([[view subviews] count]) {
        for (UITableViewCell *cell in [view visibleCells]) {
            cell.textLabel.textColor = [UIColor redColor];
        }
    } 
Run Code Online (Sandbox Code Playgroud)