| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- //
- // RecyleViewController.m
- // WSCloudStorage
- //
- // Created by JonathanH on 2017/8/9.
- // Copyright © 2017年 wswinsoft. All rights reserved.
- //
- #import "RecyleViewController.h"
- #import "CSFileCell.h"
- @interface RecyleViewController ()
- @property (nonatomic,weak)UITableView *tableView;
- @end
- @implementation RecyleViewController
- -(void)dismisself{
- [self dismissViewControllerAnimated:YES completion:nil];
- }
- - (void)viewDidLoad {
- [super viewDidLoad];
- self.title = @"回收站";
- //self.navigationController.navigationItem.leftBarButtonItem =
- UIBarButtonItem *leftback = [[UIBarButtonItem alloc]initWithTitle:@"返回" style:UIBarButtonItemStylePlain target:self action:@selector(dismisself)];
- self.navigationItem.leftBarButtonItem = leftback;
- self.navigationItem.leftItemsSupplementBackButton = YES;
- // Do any additional setup after loading the view.
-
- [self initSubView];
- }
- - (void)didReceiveMemoryWarning {
- [super didReceiveMemoryWarning];
- // Dispose of any resources that can be recreated.
- }
- - (void)initSubView{
- CGFloat screenH = SCREEN_HEIGHT;
- CGFloat screenW = SCREEN_WIDTH;
- UITableView *tableView = [[UITableView alloc]initWithFrame:self.view.bounds style:UITableViewStylePlain];
- [self.view addSubview:tableView];
- self.tableView = tableView;
- CALayer *layer = [CALayer layer];
- layer.frame = CGRectMake(0, screenH-44, screenW, 44);//44-30 = 14 7 7
- layer.backgroundColor = RGB(121, 121, 121).CGColor;
- UIButton *clearAllBtn = [UIButton buttonWithType:UIButtonTypeSystem];
- clearAllBtn.frame = CGRectMake(40, layer.frame.origin.y+7, screenW -80, 30);
- [clearAllBtn setTitle:@"一键清空" forState:UIControlStateNormal];
- clearAllBtn.backgroundColor = RGB(132,178,237);
- [self.view addSubview:clearAllBtn];
-
- }
- /*
- #pragma mark - Navigation
- // In a storyboard-based application, you will often want to do a little preparation before navigation
- - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
- // Get the new view controller using [segue destinationViewController].
- // Pass the selected object to the new view controller.
- }
- */
- @end
|