1 - (UITableView *)tableView {
 2 
 3     if (!_tableView) {
 4 
 5         _tableView = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, WIDTH_SCREEN, HEIGHT_SCREEN) style:UITableViewStyleGrouped];
 6 
 7         _tableView.rowHeight = 50;
 8 
 9         _tableView.delegate = self;
10 
11         _tableView.dataSource = self;
12 
13         UIView *footerView =[[UIView alloc]initWithFrame:CGRectMake(0, 0, WIDTH_SCREEN, 74)];
14 
15         UIButton *btn=[[UIButton alloc]initWithFrame:CGRectMake(15, 15, WIDTH_SCREEN-30, 44)];
16 
17         btn.backgroundColor=UIColorFromHex(0x3757d8);
18 
19         btn.layer.cornerRadius=5;
20 
21         [btn setTitle:@"退出登录" forState:UIControlStateNormal];
22 
23         [btn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
24 
25         
26 
27         [btn addTarget:self action:@selector(btnLoginOut) forControlEvents:UIControlEventTouchUpInside];
28 
29         
30 
31         [footerView addSubview:btn];
32 
33         
34 
35         
36 
37         _tableView.tableFooterView =footerView;
38 
39     }
40 
41     return _tableView;
42 
43 }
44