Set the font color of ios7 statusBar to white
1: The statusBar font is white. In plist, set View controller-based status bar appearance to NO. Set statusBarStyle to UIStatusBarStyleLightContent2: Set statusBar and navigationbar as one [nav. navigationBar setBackgroundImage: [UIImage imageNamed: @ "bg_navbar.png"] forBarPosition: Invalid barMetrics: UIBarMetricsDefault]; 3: If tabBarItem is selected, you need to call the method in sdk7: // compatible with [viewController. tabBarItem setFinishedSelectedImage: actionMenu. selectedIcon withFinishedUnselectedImage: actionMenu. icon]; // method of ios7 viewController. tabBarItem. selectedImage = actionMenu. selectedIcon; 4: refresh the status bar statusBar [self setNeedsStatusBarAppearanceUpdate] 5: The BarButtonItem text on the navigationbar cannot be seen. If the backBarItem arrow does not exist, the BarButtonItem font color must be set on, excluding the [[UIBarButtonItem appearance] direction: UIOffsetMake (0, 0) forBarMetrics: colors]; // sets the BarButtonItem color, including the return arrow [UINavigationBar appearance] setTintColor: [UIColor whiteColor]; 6: cancel the built-in gesture of ios7. For example, if the right slide of navigationcontroller returns self. navigationController. interactivepopgsturerecognizer. enabled = NO;