的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; }
显示设置的实现代码如下背景色redcolor –