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,6 +46,9 @@ | ||
| 46 | _stateLabel.layer.masksToBounds = YES; | 46 | _stateLabel.layer.masksToBounds = YES; |
| 47 | _stateLabel.layer.cornerRadius = 2; | 47 | _stateLabel.layer.cornerRadius = 2; |
| 48 | [self addSubview:_stateLabel]; | 48 | [self addSubview:_stateLabel]; |
| 49 | + | ||
| 50 | + UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(tapDidClicked)]; | ||
| 51 | + [self addGestureRecognizer:tap]; | ||
| 49 | 52 | ||
| 50 | } | 53 | } |
| 51 | return self; | 54 | return self; |
| @@ -80,7 +83,7 @@ | @@ -80,7 +83,7 @@ | ||
| 80 | break; | 83 | break; |
| 81 | } | 84 | } |
| 82 | case 3: { | 85 | case 3: { |
| 83 | - _stateLabel.text = @"回放准备中"; | 86 | + _stateLabel.text = @"回放中"; |
| 84 | _stateLabel.hidden = NO; | 87 | _stateLabel.hidden = NO; |
| 85 | [_stateLabel sizeToFit]; | 88 | [_stateLabel sizeToFit]; |
| 86 | // self.canClicked = YES; | 89 | // self.canClicked = YES; |
| @@ -142,10 +145,16 @@ | @@ -142,10 +145,16 @@ | ||
| 142 | }]; | 145 | }]; |
| 143 | 146 | ||
| 144 | } | 147 | } |
| 148 | + | ||
| 145 | - (void)playImageClicked:(UIButton *)btn{ | 149 | - (void)playImageClicked:(UIButton *)btn{ |
| 146 | self.block?self.block():@""; | 150 | self.block?self.block():@""; |
| 147 | 151 | ||
| 148 | } | 152 | } |
| 149 | 153 | ||
| 154 | +- (void)tapDidClicked{ | ||
| 155 | + self.block?self.block():@""; | ||
| 156 | + | ||
| 157 | +} | ||
| 158 | + | ||
| 150 | @end | 159 | @end |
| 151 | 160 |