// // TDTableView.m // TheoryNetwork // // Created by tederen on 2019/9/23. // Copyright © 2019 tederen. All rights reserved. // #import "TDTableView.h" @implementation TDTableView - (instancetype)init { self = [super init]; if (self) { [self setShowsVerticalScrollIndicator:NO]; [self setShowsHorizontalScrollIndicator:NO]; [self setScrollsToTop:NO]; [self setSeparatorStyle:UITableViewCellSeparatorStyleNone]; self.estimatedRowHeight = 0; self.estimatedSectionHeaderHeight = 0; self.estimatedSectionFooterHeight = 0; } return self; } - (instancetype)initWithFrame:(CGRect)frame style:(UITableViewStyle)style { self = [super initWithFrame:frame style:style]; if (self) { self.backgroundColor = [UIColor whiteColor]; [self setShowsVerticalScrollIndicator:NO]; [self setShowsHorizontalScrollIndicator:NO]; [self setSeparatorStyle:UITableViewCellSeparatorStyleNone]; self.estimatedRowHeight = 0; self.estimatedSectionHeaderHeight = 0; self.estimatedSectionFooterHeight = 0; } return self; } - (void)setTopInsertValue:(CGFloat)value { self.contentInset = UIEdgeInsetsMake(value, 0, 0, 0); } @end