ViewController.m 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. @interface ViewController ()
  10. @end
  11. @implementation ViewController
  12. - (void)viewDidLoad {
  13. [super viewDidLoad];
  14. // Do any additional setup after loading the view, typically from a nib.
  15. // UIView *bgView = [[UIView alloc]initWithFrame:self.tabBar.bounds];
  16. // bgView.backgroundColor = [UIColor orangeColor];
  17. // [self.tabBar insertSubview:bgView atIndex:0];
  18. // self.tabBar.opaque = YES;
  19. // UITabBar *tab = [self.tabBar.items objectAtIndex:0];
  20. // [tabBar setTintColor:[UIColor orangeColor]];[CIColor colorWithString:@"#00bfff"];
  21. self.tabBar.barTintColor = [UIColor colorWithRed:0/255.0 green:191/255.0 blue:255/255.0 alpha:1];
  22. self.tabBar.tintColor = [UIColor whiteColor];
  23. self.tabBar.opaque = NO;
  24. self.tabBar.translucent = NO;
  25. [self.tabBar setValue:@(YES) forKeyPath:@"_hidesShadow"];
  26. [self.navigationController.navigationBar setBarTintColor:[UIColor colorWithRed:0/255.0 green:191/255.0 blue:255/255.0 alpha:1]];
  27. }
  28. - (void)didReceiveMemoryWarning {
  29. [super didReceiveMemoryWarning];
  30. // Dispose of any resources that can be recreated.
  31. }
  32. @end