//
//  BaseTableView.m
//  keyBoard
//

#import "BaseTableView.h"

@implementation BaseTableView

- (instancetype)initWithFrame:(CGRect)frame style:(UITableViewStyle)style {
    if (self = [super initWithFrame:frame style:style]) {
        [self commonInit];
    }
    return self;
}


- (void)commonInit {
    self.sectionHeaderTopPadding = 0;
    self.backgroundColor = [UIColor whiteColor];
    self.separatorStyle = UITableViewCellSeparatorStyleSingleLine;
    // Disable estimates to avoid jumpy updates for simple lists; tweak per-screen if needed
    self.estimatedRowHeight = 0;
    self.estimatedSectionHeaderHeight = 0;
    self.estimatedSectionFooterHeight = 0;
    self.keyboardDismissMode = UIScrollViewKeyboardDismissModeOnDrag;
}

@end

