Commit d576d3b27c0ff53bb510bd6dd8eae19cecdb8f26
1 parent
90f6ba20
no message
Showing
1 changed file
with
10 additions
and
1 deletions
CNLiveScioLive/Pages/Live/View/CNLiveHeaderView.m
| ... | ... | @@ -46,6 +46,9 @@ |
| 46 | 46 | _stateLabel.layer.masksToBounds = YES; |
| 47 | 47 | _stateLabel.layer.cornerRadius = 2; |
| 48 | 48 | [self addSubview:_stateLabel]; |
| 49 | + | |
| 50 | + UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(tapDidClicked)]; | |
| 51 | + [self addGestureRecognizer:tap]; | |
| 49 | 52 | |
| 50 | 53 | } |
| 51 | 54 | return self; |
| ... | ... | @@ -80,7 +83,7 @@ |
| 80 | 83 | break; |
| 81 | 84 | } |
| 82 | 85 | case 3: { |
| 83 | - _stateLabel.text = @"回放准备中"; | |
| 86 | + _stateLabel.text = @"回放中"; | |
| 84 | 87 | _stateLabel.hidden = NO; |
| 85 | 88 | [_stateLabel sizeToFit]; |
| 86 | 89 | // self.canClicked = YES; |
| ... | ... | @@ -142,10 +145,16 @@ |
| 142 | 145 | }]; |
| 143 | 146 | |
| 144 | 147 | } |
| 148 | + | |
| 145 | 149 | - (void)playImageClicked:(UIButton *)btn{ |
| 146 | 150 | self.block?self.block():@""; |
| 147 | 151 | |
| 148 | 152 | } |
| 149 | 153 | |
| 154 | +- (void)tapDidClicked{ | |
| 155 | + self.block?self.block():@""; | |
| 156 | + | |
| 157 | +} | |
| 158 | + | |
| 150 | 159 | @end |
| 151 | 160 | ... | ... |