mirror of
https://github.com/SoPat712/YTLitePlus.git
synced 2025-11-01 05:13:39 -04:00
34 lines
963 B
Objective-C
34 lines
963 B
Objective-C
//
|
|
// FLEXTableLeftCell.m
|
|
// FLEX
|
|
//
|
|
// Created by Peng Tao on 15/11/24.
|
|
// Copyright © 2015年 f. All rights reserved.
|
|
//
|
|
|
|
#import "FLEXTableLeftCell.h"
|
|
|
|
@implementation FLEXTableLeftCell
|
|
|
|
+ (instancetype)cellWithTableView:(UITableView *)tableView {
|
|
static NSString *identifier = @"FLEXTableLeftCell";
|
|
FLEXTableLeftCell *cell = [tableView dequeueReusableCellWithIdentifier:identifier];
|
|
|
|
if (!cell) {
|
|
cell = [[FLEXTableLeftCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:identifier];
|
|
UILabel *textLabel = [UILabel new];
|
|
textLabel.textAlignment = NSTextAlignmentCenter;
|
|
textLabel.font = [UIFont systemFontOfSize:13.0];
|
|
[cell.contentView addSubview:textLabel];
|
|
cell.titlelabel = textLabel;
|
|
}
|
|
|
|
return cell;
|
|
}
|
|
|
|
- (void)layoutSubviews {
|
|
[super layoutSubviews];
|
|
self.titlelabel.frame = self.contentView.frame;
|
|
}
|
|
@end
|