Commit b93df3ef6fa7a0804f3ef2a3db246897eabec22c
1 parent
aba9dbf0
no message
Showing
3 changed files
with
4 additions
and
4 deletions
CNLiveSettingModule/Classes/Cancellation/CNLiveCancellationController.m
| @@ -139,7 +139,7 @@ static const NSInteger timeValue = 1.5; | @@ -139,7 +139,7 @@ static const NSInteger timeValue = 1.5; | ||
| 139 | [CNLiveUserAgreementManager jumpToAgreementH5WithType:CNLiveUserAgreementCancellation]; | 139 | [CNLiveUserAgreementManager jumpToAgreementH5WithType:CNLiveUserAgreementCancellation]; |
| 140 | } | 140 | } |
| 141 | 141 | ||
| 142 | -- (void)clickedCancellationButton:(CNLiveCancellationView *)view{ | 142 | +- (void)clickedCancellation:(CNLiveCancellationView *)view{ |
| 143 | __weak typeof(self) weakSelf = self; | 143 | __weak typeof(self) weakSelf = self; |
| 144 | QMUIAlertAction *sure = [QMUIAlertAction actionWithTitle:@"是" style:QMUIAlertActionStyleDefault handler:^(__kindof QMUIAlertController *aAlertController, QMUIAlertAction *action) { | 144 | QMUIAlertAction *sure = [QMUIAlertAction actionWithTitle:@"是" style:QMUIAlertActionStyleDefault handler:^(__kindof QMUIAlertController *aAlertController, QMUIAlertAction *action) { |
| 145 | __strong typeof(weakSelf) strongSelf = weakSelf; | 145 | __strong typeof(weakSelf) strongSelf = weakSelf; |
CNLiveSettingModule/Classes/Cancellation/CNLiveCancellationView.h
| @@ -11,7 +11,7 @@ | @@ -11,7 +11,7 @@ | ||
| 11 | NS_ASSUME_NONNULL_BEGIN | 11 | NS_ASSUME_NONNULL_BEGIN |
| 12 | @class CNLiveCancellationView; | 12 | @class CNLiveCancellationView; |
| 13 | @protocol CNLiveCancellationViewDelegate <NSObject> | 13 | @protocol CNLiveCancellationViewDelegate <NSObject> |
| 14 | -- (void)clickedCancellationButton:(CNLiveCancellationView *)view; | 14 | +- (void)clickedCancellation:(CNLiveCancellationView *)view; |
| 15 | - (void)clickedProtocol:(CNLiveCancellationView *)view; | 15 | - (void)clickedProtocol:(CNLiveCancellationView *)view; |
| 16 | 16 | ||
| 17 | @end | 17 | @end |
CNLiveSettingModule/Classes/Cancellation/CNLiveCancellationView.m
| @@ -83,8 +83,8 @@ static const NSInteger margin = 15; | @@ -83,8 +83,8 @@ static const NSInteger margin = 15; | ||
| 83 | } | 83 | } |
| 84 | } | 84 | } |
| 85 | - (void)cancellationDidClicked:(UIButton *)btn{ | 85 | - (void)cancellationDidClicked:(UIButton *)btn{ |
| 86 | - if (self.delegate && [self.delegate respondsToSelector:@selector(clickedCancellationButton:)] && _agreeBtn.selected) { | ||
| 87 | - [self.delegate clickedCancellationButton:self]; | 86 | + if (self.delegate && [self.delegate respondsToSelector:@selector(clickedCancellation:)] && _agreeBtn.selected) { |
| 87 | + [self.delegate clickedCancellation:self]; | ||
| 88 | 88 | ||
| 89 | } | 89 | } |
| 90 | } | 90 | } |