12345678910111213141516171819202122232425262728293031323334353637 |
- //
- // KSBaseTableViewController.m
- // StudentDaya
- //
- // Created by Kyle on 2020/10/27.
- // Copyright © 2020 DayaMusic. All rights reserved.
- //
- #import "KSBaseTableViewController.h"
- @interface KSBaseTableViewController ()
- @end
- @implementation KSBaseTableViewController
- - (void)viewDidLoad {
- [super viewDidLoad];
- [self closeSelfSizing];
- self.tableView.tableFooterView = [UIView new];
- self.tableView.backgroundColor = HexRGB(0xf0f0f6);
- self.tableView.separatorColor = HexRGB(0xdfdfdf);
- }
- - (void)closeSelfSizing {
- self.tableView.estimatedRowHeight = 0;
- self.tableView.estimatedSectionHeaderHeight = 0;
- self.tableView.estimatedSectionFooterHeight = 0;
- }
- - (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section {
- UIView *view = [UIView new];
- view.backgroundColor = HexRGB(0xf0f0f6);
- return view;
- }
- @end
|