Commit b93df3ef6fa7a0804f3ef2a3db246897eabec22c

Authored by zhangxiaowen
1 parent aba9dbf0

no message

CNLiveSettingModule/Classes/Cancellation/CNLiveCancellationController.m
... ... @@ -139,7 +139,7 @@ static const NSInteger timeValue = 1.5;
139 139 [CNLiveUserAgreementManager jumpToAgreementH5WithType:CNLiveUserAgreementCancellation];
140 140 }
141 141  
142   -- (void)clickedCancellationButton:(CNLiveCancellationView *)view{
  142 +- (void)clickedCancellation:(CNLiveCancellationView *)view{
143 143 __weak typeof(self) weakSelf = self;
144 144 QMUIAlertAction *sure = [QMUIAlertAction actionWithTitle:@"是" style:QMUIAlertActionStyleDefault handler:^(__kindof QMUIAlertController *aAlertController, QMUIAlertAction *action) {
145 145 __strong typeof(weakSelf) strongSelf = weakSelf;
... ...
CNLiveSettingModule/Classes/Cancellation/CNLiveCancellationView.h
... ... @@ -11,7 +11,7 @@
11 11 NS_ASSUME_NONNULL_BEGIN
12 12 @class CNLiveCancellationView;
13 13 @protocol CNLiveCancellationViewDelegate <NSObject>
14   -- (void)clickedCancellationButton:(CNLiveCancellationView *)view;
  14 +- (void)clickedCancellation:(CNLiveCancellationView *)view;
15 15 - (void)clickedProtocol:(CNLiveCancellationView *)view;
16 16  
17 17 @end
... ...
CNLiveSettingModule/Classes/Cancellation/CNLiveCancellationView.m
... ... @@ -83,8 +83,8 @@ static const NSInteger margin = 15;
83 83 }
84 84 }
85 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 }
... ...