添加基本页面
This commit is contained in:
32
keyBoard/Class/Base/V/BaseCell.m
Normal file
32
keyBoard/Class/Base/V/BaseCell.m
Normal file
@@ -0,0 +1,32 @@
|
||||
//
|
||||
// BaseCell.m
|
||||
// keyBoard
|
||||
//
|
||||
|
||||
#import "BaseCell.h"
|
||||
|
||||
@implementation BaseCell
|
||||
|
||||
+ (NSString *)reuseId {
|
||||
return NSStringFromClass(self);
|
||||
}
|
||||
|
||||
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
|
||||
if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
|
||||
self.selectionStyle = UITableViewCellSelectionStyleNone;
|
||||
[self setupUI];
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void)prepareForReuse {
|
||||
[super prepareForReuse];
|
||||
// Reset state if needed by subclasses
|
||||
}
|
||||
|
||||
- (void)setupUI {
|
||||
// Subclasses override to build UI
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user