Commit f218130a7430eb0ff95fbdc14db1fb64bab5c4a6

Authored by zhangxiaowen
1 parent e56684ef

no message

CNLiveSettingModule/Classes/Privacy/CNLiveNotSeeCell.m
@@ -84,13 +84,11 @@ static const NSInteger margin = 15; @@ -84,13 +84,11 @@ static const NSInteger margin = 15;
84 make.centerX.mas_equalTo(self.contentView); 84 make.centerX.mas_equalTo(self.contentView);
85 make.size.mas_equalTo(CGSizeMake(45, 45)); 85 make.size.mas_equalTo(CGSizeMake(45, 45));
86 }]; 86 }];
87 -  
88 [self.delButton mas_makeConstraints:^(MASConstraintMaker *make) { 87 [self.delButton mas_makeConstraints:^(MASConstraintMaker *make) {
89 make.top.mas_equalTo(self.contentView).offset(3);; 88 make.top.mas_equalTo(self.contentView).offset(3);;
90 make.right.mas_equalTo(self.avatarImage.mas_left).offset(12.5); 89 make.right.mas_equalTo(self.avatarImage.mas_left).offset(12.5);
91 make.size.mas_equalTo(CGSizeMake(20, 20)); 90 make.size.mas_equalTo(CGSizeMake(20, 20));
92 }]; 91 }];
93 -  
94 [self.nameLabel mas_makeConstraints:^(MASConstraintMaker *make) { 92 [self.nameLabel mas_makeConstraints:^(MASConstraintMaker *make) {
95 make.centerX.mas_equalTo(self.contentView); 93 make.centerX.mas_equalTo(self.contentView);
96 make.bottom.mas_equalTo(self.contentView).offset(-margin); 94 make.bottom.mas_equalTo(self.contentView).offset(-margin);
@@ -106,7 +104,6 @@ static const NSInteger margin = 15; @@ -106,7 +104,6 @@ static const NSInteger margin = 15;
106 [_delButton setBackgroundImage:image forState:UIControlStateNormal]; 104 [_delButton setBackgroundImage:image forState:UIControlStateNormal];
107 [_delButton addTarget:self action:@selector(delButtonDidClicked:) forControlEvents:UIControlEventTouchUpInside]; 105 [_delButton addTarget:self action:@selector(delButtonDidClicked:) forControlEvents:UIControlEventTouchUpInside];
108 [_delButton setHidden:YES]; 106 [_delButton setHidden:YES];
109 -  
110 } 107 }
111 return _delButton; 108 return _delButton;
112 } 109 }
CNLiveSettingModule/Classes/Privacy/CNLiveNotSeeController.m
@@ -129,6 +129,7 @@ static const NSInteger SectionHeight = 50; @@ -129,6 +129,7 @@ static const NSInteger SectionHeight = 50;
129 } 129 }
130 - (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath{ 130 - (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath{
131 CNLiveNotSeeCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:kCNLiveNotSeeCell forIndexPath:indexPath]; 131 CNLiveNotSeeCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:kCNLiveNotSeeCell forIndexPath:indexPath];
  132 +// cell.backgroundColor = [UIColor redColor];
132 cell.model = self.afterData[indexPath.row]; 133 cell.model = self.afterData[indexPath.row];
133 cell.delegate = self; 134 cell.delegate = self;
134 return cell; 135 return cell;