+ (instancetype)cellWithTableView:(UITableView *)tableView{
NSString* kCellIdentifier = [[self class] description];
MyCell *cell = [tableView dequeueReusableCellWithIdentifier:kCellIdentifier];
if (cell == nil) {
[tableView registerNib:[UINib nibWithNibName:kCellIdentifier bundle:nil] forCellReuseIdentifier:kCellIdentifier];
cell = [tableView dequeueReusableCellWithIdentifier:kCellIdentifier];
}
return cell;
}
+ (CGFloat)cellHeight{
return 60.0f;
}
+ (instancetype)cellWithTableView:(UITableView *)tableView {
NSString* kCellIdentifier = [[self class] description];
id cell = [tableView dequeueReusableCellWithIdentifier:kCellIdentifier];
if (cell == nil) {
[tableView registerClass:[self class] forCellReuseIdentifier:kCellIdentifier];
cell = [tableView dequeueReusableCellWithIdentifier:kCellIdentifier];
}
return cell;
}
+ (CGFloat)cellHeight{
return 40.0f;
}
最后編輯于 :
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者