1

The UITableView is inside NavigationController, but navigation bar hidden by this line:

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

What I have:

What I want:

What I've tried:

  • How to change Status Bar text color in iOS 7: tried the 1 & 2nd steps, didn't work. (the 3rd step would make all text in status bar white)

  • modify the frame of the 1st cell in:

    - (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;
    }
    
Community
  • 1
  • 1
Ascendant
  • 2,430
  • 3
  • 26
  • 34

2 Answers2

0

Turned out that I had to set the background color of the whole UITableView, simple as that.

Ascendant
  • 2,430
  • 3
  • 26
  • 34
0

Set the tableview background color to the redcolor then status bar will be shown in redcolor

Ramesh Muthe
  • 811
  • 7
  • 15