1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- //
- // NoticeUnreadCell.m
- // smartRhino
- //
- // Created by armin on 2019/11/6.
- // Copyright © 2019 tederen. All rights reserved.
- //
- #import "NoticeUnreadCell.h"
- @implementation NoticeUnreadCell
- - (void)awakeFromNib {
- [super awakeFromNib];
- self.cell1ImageView.layer.masksToBounds = YES;
- self.cell1ImageView.layer.cornerRadius = 4.f;
- }
- - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
- [super setSelected:selected animated:animated];
- // Configure the view for the selected state
- }
- + (CGFloat)configCell0Height{
- return 50;
- }
- + (CGFloat)configCell1Height{
- return 60;
- }
- + (NoticeUnreadCell *)configCell0:(UITableView *)tableView indexPath:(NSIndexPath *)indexPath{
- static NSString *cellIdentifer = @"NoticeUnreadCell0";
- NoticeUnreadCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifer];
- if (cell == nil) {
- cell = [[[NSBundle mainBundle] loadNibNamed:@"NoticeUnreadCell" owner:nil options:nil] objectAtIndex:0];
- }
- cell.selectionStyle = UITableViewCellSelectionStyleNone;
- cell.cell0SearchBgView.layer.masksToBounds = YES;
- cell.cell0SearchBgView.layer.cornerRadius = 36/2.0;
- cell.cell0SearchBgView.backgroundColor = RGB(245, 246, 248);
-
- return cell;
- }
- + (NoticeUnreadCell *)configCell1:(UITableView *)tableView indexPath:(NSIndexPath *)indexPath{
- static NSString *cellIdentifer = @"NoticeUnreadCell1";
- NoticeUnreadCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifer];
- if (cell == nil) {
- cell = [[[NSBundle mainBundle] loadNibNamed:@"NoticeUnreadCell" owner:nil options:nil] objectAtIndex:1];
- }
- cell.selectionStyle = UITableViewCellSelectionStyleNone;
-
- return cell;
- }
- @end
|