添加基本页面

This commit is contained in:
2025-10-29 14:28:57 +08:00
parent 045d5eaff8
commit 23317c9fd4
8 changed files with 146 additions and 3 deletions

View 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