Няма описание

FKCirDetailNoCommentCell.m 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. //
  2. // FKCirDetailNoCommentCell.m
  3. // FirstLink
  4. //
  5. // Created by jack on 16/6/15.
  6. // Copyright © 2016年 FirstLink. All rights reserved.
  7. //
  8. #import "FKCirDetailNoCommentCell.h"
  9. @implementation FKCirDetailNoCommentCell
  10. - (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
  11. if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
  12. [self addAllSubviews];
  13. self.selectionStyle = UITableViewCellSelectionStyleNone;
  14. self.contentView.backgroundColor = [UIColor whiteColor];
  15. }
  16. return self;
  17. }
  18. - (void)addAllSubviews{
  19. UILabel *titleLabel = [[UILabel alloc]init];
  20. titleLabel.font = [UIFont systemFontOfSize:14];
  21. titleLabel.textColor = UIColorFromRGB(0x9b9b9b);
  22. titleLabel.text = @"还没有评论哦\n快来抢沙发";
  23. titleLabel.textAlignment = NSTextAlignmentCenter;
  24. titleLabel.numberOfLines = 0;
  25. [self.contentView addSubview:titleLabel];
  26. [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
  27. make.center.equalTo(self.contentView);
  28. }];
  29. }
  30. @end