Commit 2d4985c7f8bce4f4d21f564282c21ca60635b476

Authored by zhangxiaowen
1 parent b5656b36

no message

CNLiveMineModule/Classes/View/CNLiveMineCell.m
... ... @@ -261,8 +261,10 @@
261 261 }
262 262 }
263 263  
264   -- (void)allBtnDidClicked:(UIButton *)btn{
265   -
  264 +- (void)allDidClicked:(UIButton *)btn{
  265 + if (self.delegate && [self.delegate respondsToSelector:@selector(cell:clickedButtonWithType:tag:)]) {
  266 + [self.delegate cell:self clickedButtonWithType:CNLiveMineCellTypeOrder tag:10000];
  267 + }
266 268  
267 269 }
268 270  
... ... @@ -297,7 +299,7 @@
297 299 _allButton.titleLabel.font = [UIFont systemFontOfSize:12];
298 300 [_allButton setTitleColor:[UIColor colorWithRed:190.0/255.0 green:190.0/255.0 blue:190.0/255.0 alpha:1.0] forState:UIControlStateNormal];
299 301 _allButton.adjustsImageWhenHighlighted = NO;
300   - [_allButton addTarget:self action:@selector(allBtnDidClicked:) forControlEvents:UIControlEventTouchUpInside];
  302 + [_allButton addTarget:self action:@selector(allDidClicked:) forControlEvents:UIControlEventTouchUpInside];
301 303  
302 304 _allButton.titleEdgeInsets = UIEdgeInsetsMake(0, -10, 0, 10);
303 305 _allButton.imageEdgeInsets = UIEdgeInsetsMake(0, 50, 0, -50);
... ...