1.设置状态栏为白字
1在Info.plist中设置UIViewControllerBasedStatusBarAppearance 为NO
2 在需要改变状态栏颜色的ViewController中在ViewDidLoad方法中增加:
UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
如果需要在全部View中都变色,可以写在父类的相关方法中。
2.状态栏设配方法
1.不要勾选xib中的Use Autolayout
2.选择View as “ios6.1 and Earlier”
3.Size Inspector中,有一ios6/7 Deltas:分别表示在PosX的增量、PosY的增量、宽度增量、高度增量。
注意点,第三步设置的是xib中的子视图tableview,而不是view,我的例子里,RootViewController是window的root controller,view的frame调整是没变化的