Helper.m 497 B

123456789101112131415161718
  1. //
  2. // Helper.m
  3. // TumblrDownloader
  4. //
  5. // Created by HonorLee on 16/1/15.
  6. // Copyright © 2016年 HonorLee. All rights reserved.
  7. //
  8. #import "Helper.h"
  9. @implementation Helper
  10. //Change StatusBar Background
  11. +(void)changeStatusBarBackground:(UIColor *)color{
  12. UIView *statusBar = [[[UIApplication sharedApplication]valueForKey:@"statusBarWindow"]valueForKey:@"statusBar"];
  13. if([statusBar respondsToSelector:@selector(setBackgroundColor:)])
  14. statusBar.backgroundColor = color;
  15. }
  16. @end