iOS状态栏

2017-03-10  本文已影响0人  willokyes

隐藏状态栏


#import "ViewController.h"

@interface ViewController ()
@end

@implementation ViewController

- (BOOL)prefersStatusBarHidden{
    return YES;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
}

@end


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

    self.window.windowLevel = UIWindowLevelAlert;
    
    return YES;
}

修改状态栏字体的颜色

http://blog.csdn.net/gaoyp/article/details/38441723

上一篇下一篇

猜你喜欢

热点阅读