2014-10-13 26 views
1

的UITableView的是里面NavigationController,但导航栏通过此行隐藏:如何用隐藏的导航栏更改UITableView的状态栏bgcolor?

[[self navigationController] setNavigationBarHidden:YES animated:YES]; 

我有什么:

我想要什么:

我已经试过:

  • How to change Status Bar text color in iOS 7:尝试了1个&第二个步骤,没有工作。 (第三步将使在状态栏中白色所有文本)

  • 修改第一小区的框架:

    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath: 
    
    // for the 1st cell, move frame up to cover status bar 
    if (indexPath.row == 0) { 
        CGRect frame = cell.frame; 
    // frame.origin.y -= 50; 
        frame.size.height += 50; 
        cell.frame = frame; 
    } 
    
+0

显示设置的实现代码如下背景色redcolor –

回答

0

原来,我必须设置整个的背景颜色UITableView,就这么简单。

+0

怎么样的状态栏?他们是否自动变为白色? – myatmins

0

将实现代码如下背景颜色的redcolor则状态栏将在redcolor