#import "ViewController.h"
#import "QRCodeGenerator.h"
@interface ViewController ()
@property (weak, nonatomic)
//文字
IBOutlet UITextField *wenzi;
@property (weak, nonatomic) IBOutlet UIImageView *imageview;
@end
@implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
}
- (IBAction)shengcheng:(id)sender {
self.imageview.image = [QRCodeGenerator qrImageForString:self.wenzi.text imageSize:self.imageview.bounds.size.width];
}