Commit 4c6430bd2f643b1cf88aef875cbff130958805a1

Authored by zhangxiaowen
1 parent e30be678

no message

CNLiveQrCodeModule/Classes/View/CNLiveMyQrCodeView.m
... ... @@ -117,7 +117,8 @@ static const CGFloat timeValue = 1.5;
117 117 NSData *jsonData = [NSJSONSerialization dataWithJSONObject:jsonDic options:NSJSONWritingPrettyPrinted error:nil];
118 118 NSString *jsonStr = [[NSString alloc] initWithData:jsonData encoding:NSUTF8StringEncoding];
119 119  
120   - strongSelf.qrCode.image = [SGQRCodeObtain generateQRCodeWithData:jsonStr size:SCREEN_WIDTH-12*margin logoImage:nil ratio:0.2];
  120 + [strongSelf.qrCode sd_setImageWithURL:nil placeholderImage:[SGQRCodeObtain generateQRCodeWithData:jsonStr size:SCREEN_WIDTH-12*margin logoImage:nil ratio:0.2]];
  121 +
121 122 if([type isEqualToString:@"reset"]){
122 123 [QMUITips showSucceed:@"重置成功" inView:strongSelf hideAfterDelay:timeValue];
123 124 }
... ...