Commit 9f0398bdb99fe2c39408acee8582ce2c0eba64b9

Authored by zhangxiaowen
1 parent 7ebd2c8b

no message

CNLiveQrCodeModule/Classes/Controller/CNLiveMyQrCodeController.m
... ... @@ -192,14 +192,17 @@ static const CGFloat timeValue = 1.5;
192 192 [alertController addAction:action3];
193 193 [alertController addAction:cancel];
194 194  
195   - NSMutableDictionary *cancelTitleAttributs = [[NSMutableDictionary alloc] initWithDictionary:alertController.alertTitleAttributes];
  195 + NSMutableDictionary *titleAttributs = [[NSMutableDictionary alloc] initWithDictionary:alertController.alertTitleAttributes];
196 196  
197   - cancelTitleAttributs[NSForegroundColorAttributeName] = [UIColor greenColor];
198   -
199   - action1.buttonAttributes = cancelTitleAttributs;
200   - action2.buttonAttributes = cancelTitleAttributs;
201   - action3.buttonAttributes = cancelTitleAttributs;
202   - cancel.buttonAttributes = cancelTitleAttributs;
  197 + titleAttributs[NSForegroundColorAttributeName] = [UIColor colorWithRed:35/255.0 green:212/255.0 blue:30/255.0 alpha:1.0];
  198 +
  199 + NSMutableDictionary *cancelAttributs = [[NSMutableDictionary alloc] initWithDictionary:alertController.alertTitleAttributes];
  200 + cancelAttributs[NSForegroundColorAttributeName] = [UIColor colorWithRed:51/255.0 green:51/255.0 blue:51/255.0 alpha:1.0];
  201 +
  202 + action1.buttonAttributes = titleAttributs;
  203 + action2.buttonAttributes = titleAttributs;
  204 + action3.buttonAttributes = titleAttributs;
  205 + cancel.buttonAttributes = cancelAttributs;
203 206  
204 207 [alertController showWithAnimated:YES];
205 208 }
... ... @@ -215,9 +218,6 @@ static const CGFloat timeValue = 1.5;
215 218 _bgView = [[UIImageView alloc]initWithFrame:self.view.bounds];
216 219 UIImage *image = [self xw_getImageName:@"qr_code_bg" bundleName:@"CNLiveQrCodeModule" targetClass:[CNLiveMyQrCodeController class]];
217 220 [_bgView sd_setImageWithURL:[NSURL URLWithString:@"User_Head"] placeholderImage:image completed:^(UIImage * _Nullable image, NSError * _Nullable error, SDImageCacheType cacheType, NSURL * _Nullable imageURL) {
218   - if(image){
219   - // bgView.image = [image blurImageWithRadius:4];
220   - }
221 221 }];
222 222 }
223 223 return _bgView;
... ...