ViewController.m 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. //
  2. // ViewController.m
  3. // TumblrDownloader
  4. //
  5. // Created by HonorLee on 1/12/16.
  6. // Copyright © 2016 HonorLee. All rights reserved.
  7. //
  8. #import "ViewController.h"
  9. #import "Helper.h"
  10. @interface ViewController ()
  11. @end
  12. static ViewController *_inst;
  13. @implementation ViewController
  14. +(id)Instance{
  15. return _inst;
  16. }
  17. - (void)viewDidLoad {
  18. [super viewDidLoad];
  19. // Do any additional setup after loading the view, typically from a nib.
  20. // UIView *bgView = [[UIView alloc]initWithFrame:self.tabBar.bounds];
  21. // bgView.backgroundColor = [UIColor orangeColor];
  22. // [self.tabBar insertSubview:bgView atIndex:0];
  23. // self.tabBar.opaque = YES;
  24. // UITabBar *tab = [self.tabBar.items objectAtIndex:0];
  25. // [tabBar setTintColor:[UIColor orangeColor]];[CIColor colorWithString:@"#00bfff"];
  26. // self.tabBar.barTintColor = [UIColor whiteColor];
  27. // self.tabBar.tintColor = [UIColor whiteColor];
  28. _inst = self;
  29. self.tabBar.opaque = NO;
  30. self.tabBar.translucent = NO;
  31. // [self.tabBar setValue:@(YES) forKeyPath:@"_hidesShadow"];
  32. // [self.navigationController.navigationBar setBarTintColor:[UIColor colorWithRed:0/255.0 green:191/255.0 blue:255/255.0 alpha:1]];
  33. [Helper changeStatusBarBackground:[UIColor whiteColor]];
  34. // self.tabBar.selectionIndicatorImage=[UIImage imageNamed:@"tab_1.png"];
  35. }
  36. - (void)didReceiveMemoryWarning {
  37. [super didReceiveMemoryWarning];
  38. // Dispose of any resources that can be recreated.
  39. }
  40. @end