Commit 4c6430bd2f643b1cf88aef875cbff130958805a1
1 parent
e30be678
no message
Showing
1 changed file
with
2 additions
and
1 deletions
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 | } | ... | ... |