123456789101112131415161718 |
- //
- // Helper.m
- // TumblrDownloader
- //
- // Created by HonorLee on 16/1/15.
- // Copyright © 2016年 HonorLee. All rights reserved.
- //
- #import "Helper.h"
- @implementation Helper
- //Change StatusBar Background
- +(void)changeStatusBarBackground:(UIColor *)color{
- UIView *statusBar = [[[UIApplication sharedApplication]valueForKey:@"statusBarWindow"]valueForKey:@"statusBar"];
- if([statusBar respondsToSelector:@selector(setBackgroundColor:)])
- statusBar.backgroundColor = color;
- }
- @end
|