RecyleViewController.m 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. //
  2. // RecyleViewController.m
  3. // WSCloudStorage
  4. //
  5. // Created by JonathanH on 2017/8/9.
  6. // Copyright © 2017年 wswinsoft. All rights reserved.
  7. //
  8. #import "RecyleViewController.h"
  9. #import "CSFileCell.h"
  10. @interface RecyleViewController ()
  11. @property (nonatomic,weak)UITableView *tableView;
  12. @end
  13. @implementation RecyleViewController
  14. - (void)viewDidLoad {
  15. [super viewDidLoad];
  16. self.title = @"回收站";
  17. // Do any additional setup after loading the view.
  18. [self initSubView];
  19. }
  20. - (void)didReceiveMemoryWarning {
  21. [super didReceiveMemoryWarning];
  22. // Dispose of any resources that can be recreated.
  23. }
  24. - (void)initSubView{
  25. CGFloat screenH = SCREEN_HEIGHT;
  26. CGFloat screenW = SCREEN_WIDTH;
  27. UITableView *tableView = [[UITableView alloc]initWithFrame:self.view.bounds style:UITableViewStylePlain];
  28. [self.view addSubview:tableView];
  29. self.tableView = tableView;
  30. CALayer *layer = [CALayer layer];
  31. layer.frame = CGRectMake(0, screenH-44, screenW, 44);//44-30 = 14 7 7
  32. layer.backgroundColor = RGB(121, 121, 121).CGColor;
  33. UIButton *clearAllBtn = [UIButton buttonWithType:UIButtonTypeSystem];
  34. clearAllBtn.frame = CGRectMake(40, layer.frame.origin.y+7, screenW -80, 30);
  35. [clearAllBtn setTitle:@"一键清空" forState:UIControlStateNormal];
  36. clearAllBtn.backgroundColor = RGB(132,178,237);
  37. [self.view addSubview:clearAllBtn];
  38. }
  39. /*
  40. #pragma mark - Navigation
  41. // In a storyboard-based application, you will often want to do a little preparation before navigation
  42. - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
  43. // Get the new view controller using [segue destinationViewController].
  44. // Pass the selected object to the new view controller.
  45. }
  46. */
  47. @end