add message exercises
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
//
|
||||
// MAssaageCenterCell.m
|
||||
// GIGA
|
||||
//
|
||||
// Created by lianxiang on 2018/8/23.
|
||||
// Copyright © 2018年 com.giga.ios. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MAssaageCenterCell.h"
|
||||
|
||||
@implementation MAssaageCenterCell
|
||||
|
||||
- (void)awakeFromNib {
|
||||
[super awakeFromNib];
|
||||
// Initialization code
|
||||
self.messageCountLabel.layer.masksToBounds = YES;
|
||||
self.messageCountLabel.layer.cornerRadius = self.messageCountLabel.frame.size.height / 2;
|
||||
|
||||
}
|
||||
|
||||
-(void)loadCellDataAtIndex:(NSIndexPath *)indexPath{
|
||||
|
||||
if (indexPath.section == 0) {
|
||||
self.mesageTypeLabel.text = @"活动消息";
|
||||
|
||||
}else if (indexPath.section ==1){
|
||||
|
||||
self.mesageTypeLabel.text = @"服务消息";
|
||||
}else{
|
||||
|
||||
self.mesageTypeLabel.text = @"系统消息";
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
|
||||
[super setSelected:selected animated:animated];
|
||||
|
||||
// Configure the view for the selected state
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user