|
@@ -23,30 +23,15 @@
|
|
|
|
|
|
@implementation ASMessageListCell
|
|
|
|
|
|
-//- (void)setData:(KWMessageListModel *)m {
|
|
|
-// self.timeLb.text = m.time;
|
|
|
-// self.unreadTipV.hidden = m.isReaded == 1;
|
|
|
-// self.titleLb.text = m.title;
|
|
|
-// self.desLb.text = m.des;
|
|
|
-// if ([m.imgUrl isEmpty]) {
|
|
|
-// self.imgV.hidden = true;
|
|
|
-// } else {
|
|
|
-// self.imgV.hidden = false;
|
|
|
-// [self.imgV sd_setImageWithURL:[NSURL URLWithString:m.imgUrl.urlEncode]];
|
|
|
-// }
|
|
|
-//}
|
|
|
+- (void)awakeFromNib {
|
|
|
+ [super awakeFromNib];
|
|
|
+ // Initialization code
|
|
|
+}
|
|
|
|
|
|
-- (void)setDemoData {
|
|
|
- self.timeLb.text = @"timtimetimetime";
|
|
|
- self.unreadTipV.hidden = arc4random()%2 == 1;
|
|
|
- self.titleLb.text = @"title title title title title title title";
|
|
|
- self.desLb.text = @"content content content content content content content content content content content content content content content content content content content 134";
|
|
|
- if (arc4random()%2 == 1) {
|
|
|
- self.imgV.hidden = true;
|
|
|
- } else {
|
|
|
- self.imgV.hidden = false;
|
|
|
- self.imgV.image = [UIImage imageNamed:@"vip_bg1"];
|
|
|
- }
|
|
|
+- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
|
|
|
+ [super setSelected:selected animated:animated];
|
|
|
+
|
|
|
+ // Configure the view for the selected state
|
|
|
}
|
|
|
|
|
|
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
|
|
@@ -58,17 +43,6 @@
|
|
|
return self;
|
|
|
}
|
|
|
|
|
|
-- (void)awakeFromNib {
|
|
|
- [super awakeFromNib];
|
|
|
- // Initialization code
|
|
|
-}
|
|
|
-
|
|
|
-- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
|
|
|
- [super setSelected:selected animated:animated];
|
|
|
-
|
|
|
- // Configure the view for the selected state
|
|
|
-}
|
|
|
-
|
|
|
- (void)configSubV {
|
|
|
self.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
|
|
|
@@ -112,6 +86,32 @@
|
|
|
|
|
|
}
|
|
|
|
|
|
+//- (void)setData:(KWMessageListModel *)m {
|
|
|
+// self.timeLb.text = m.time;
|
|
|
+// self.unreadTipV.hidden = m.isReaded == 1;
|
|
|
+// self.titleLb.text = m.title;
|
|
|
+// self.desLb.text = m.des;
|
|
|
+// if ([m.imgUrl isEmpty]) {
|
|
|
+// self.imgV.hidden = true;
|
|
|
+// } else {
|
|
|
+// self.imgV.hidden = false;
|
|
|
+// [self.imgV sd_setImageWithURL:[NSURL URLWithString:m.imgUrl.urlEncode]];
|
|
|
+// }
|
|
|
+//}
|
|
|
+
|
|
|
+- (void)setDemoData {
|
|
|
+ self.timeLb.text = @"timtimetimetime";
|
|
|
+ self.unreadTipV.hidden = arc4random()%2 == 1;
|
|
|
+ self.titleLb.text = @"title title title title title title title";
|
|
|
+ self.desLb.text = @"content content content content content content content content content content content content content content content content content content content 134";
|
|
|
+ if (arc4random()%2 == 1) {
|
|
|
+ self.imgV.hidden = true;
|
|
|
+ } else {
|
|
|
+ self.imgV.hidden = false;
|
|
|
+ self.imgV.image = [UIImage imageNamed:@"vip_bg1"];
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
- (UIView *)bgV {
|
|
|
if (!_bgV) {
|
|
|
UIView *v = [[UIView alloc] init];
|