Commit 114d3a17dccb694b6ed7052b5a146950771f7c14
1 parent
d4edc5a0
0.4.5
Showing
4 changed files
with
14 additions
and
2 deletions
CNLiveCMineModule.podspec
CNLiveCMineModule/Classes/CNCMine/View/CNEvaluaveView.m
| ... | ... | @@ -46,7 +46,9 @@ |
| 46 | 46 | } |
| 47 | 47 | - (void)evaBtnClick{ |
| 48 | 48 | [CNMineEvaAlertView setUpShowEvaluateAlertViewDoneBlock:^(NSString * _Nonnull chooseStr) { |
| 49 | + [QMUITips showLoadingInView:AppKeyWindow]; | |
| 49 | 50 | [CNMinePresent requestFeedback:chooseStr secceedBlock:^{ |
| 51 | + [QMUITips hideAllTips]; | |
| 50 | 52 | [[NSUserDefaults standardUserDefaults] setObject:@"down" forKey:HIDDENDETE]; |
| 51 | 53 | [self removeFromSuperview]; |
| 52 | 54 | }]; | ... | ... |
CNLiveCMineModule/Classes/CNCMine/View/CNMineEvaAlertView.m
| ... | ... | @@ -155,10 +155,18 @@ |
| 155 | 155 | }]; |
| 156 | 156 | QMUIModalPresentationViewController *modalViewController = [[QMUIModalPresentationViewController alloc] init]; |
| 157 | 157 | modalViewController.onlyRespondsToKeyboardEventFromDescendantViews = NO; |
| 158 | + __weak typeof(modalViewController) weakModal = modalViewController; | |
| 159 | + modalViewController.layoutBlock = ^(CGRect containerBounds, CGFloat keyboardHeight, CGRect contentViewDefaultFrame) { | |
| 160 | + if (keyboardHeight >0) { | |
| 161 | + weakModal.contentView.top = contentViewDefaultFrame.origin.y - DS_adapt_length(30); | |
| 162 | + }else{ | |
| 163 | + weakModal.contentView.top = contentViewDefaultFrame.origin.y; | |
| 164 | + } | |
| 165 | + weakModal.contentView.left = contentViewDefaultFrame.origin.x; | |
| 166 | + }; | |
| 158 | 167 | modalViewController.contentView = alertView; |
| 159 | 168 | modalViewController.modal = YES; |
| 160 | 169 | [modalViewController showWithAnimated:YES completion:nil]; |
| 161 | - __weak typeof(modalViewController) weakModal = modalViewController; | |
| 162 | 170 | __weak typeof(alertView) weakAlert = alertView; |
| 163 | 171 | [alertView.closeBtn addBlockForControlEvents:UIControlEventTouchUpInside block:^(id _Nonnull sender) { |
| 164 | 172 | [weakModal hideWithAnimated:YES completion:^(BOOL finished) { | ... | ... |
CNLiveCMineModule/Classes/CNCMine/ViewController/CNLiveMineVC.m
| ... | ... | @@ -137,7 +137,9 @@ static NSString *const CNSobotNotification_NewMessage = @"CNSobotNotification_Ne |
| 137 | 137 | }else if ([[NSUserDefaults standardUserDefaults] integerForKey:@"showTimes"] == 2){ |
| 138 | 138 | [[NSUserDefaults standardUserDefaults] removeObjectForKey:@"showTimes"]; |
| 139 | 139 | [CNMineEvaAlertView setUpShowEvaluateAlertViewDoneBlock:^(NSString * _Nonnull chooseStr) { |
| 140 | + [QMUITips showLoadingInView:AppKeyWindow]; | |
| 140 | 141 | [CNMinePresent requestFeedback:chooseStr secceedBlock:^{ |
| 142 | + [QMUITips hideAllTips]; | |
| 141 | 143 | [[NSUserDefaults standardUserDefaults] setObject:@"down" forKey:HIDDENDETE]; |
| 142 | 144 | [self.evaluateView removeFromSuperview]; |
| 143 | 145 | }]; | ... | ... |