33 lines
610 B
Objective-C
33 lines
610 B
Objective-C
//
|
|
// 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
|
|
|