@interface CustomCell : UITableViewCell
@property (nonatomic,weak)IBOurlet UILabel *titleLabel;
@end
#import "CustomCell.h"
@implemention CustomCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(nullable NSString *)reuseIdentifier
{
UITableViewCell *cell = (UITableViewCell*)[[UIBundle mainBundle] loadNibNamed:@"CustomCell" owner:self options:nil][0];
return cell;
}
- (void)awakeFromNib {
// Initialization code
}
@end
CustomCell *cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@""];
cell.titleLabel.text = @"..."
CustomCell *cell = (UITableViewCell*)[[UIBundle mainBundle] loadNibNamed:@"CustomCell" owner:self options:nil][0];
cell.titleLabel.text = @"..."