here\'s my code for generating QRCode image
+ (UIImage *)generateQRCodeWithString:(NSString *)string {
NSData *stringData = [string dataUsingEncoding:NSU
Easiest solution is to add following to your image view:
imgViewQR.layer.magnificationFilter = kCAFilterNearest
This will automatically upscale your generated QR code image to imageview's size using nearest which results in sharp, pixelated image. This usually isn't what you want when resizing icons/photos but is perfect for QR codes
(it doesn't seem to work on simulator but works great on real device