initQRCodeForInputByteSize cannot find proper rs block info (input data too big?)【将base64字符串转为图片】

前言

之前的同事 误认为二维码是app侧自己生成,直接将base64字符串 作为二维码的内容去生成,一张二维码容不下这么长的内容。就生成失败了。其实只要直接将base64字符串转图片。

initQRCodeForInputByteSize cannot find proper rs block info (input data too big?)

code

  • 将base64字符串转为图片
/**
 将base64字符串转为图片
 
 */
+ (UIImage *)stringToImage:(NSString *)str {

NSData * imageData 

猜你喜欢

转载自blog.csdn.net/u011018979/article/details/105594827