添加基本页面
This commit is contained in:
30
keyBoard/Class/Base/V/BaseTableView.m
Normal file
30
keyBoard/Class/Base/V/BaseTableView.m
Normal file
@@ -0,0 +1,30 @@
|
||||
//
|
||||
// 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
|
||||
|
||||
Reference in New Issue
Block a user