Creando códigos de barras QR con ZXingObjC en Mac
Estoy tratando de usarhttp://github.com/TheLevelUp/ZXingObjC para crear códigos QR en mi aplicación Mac.
Funciona para todos los tipos de códigos de barras, pero devuelve cero en QRcode! Tanto 'resultado' como 'error' están vacíos. Aquí está mi código:
NSError* error = nil;
ZXMultiFormatWriter* writer = [[ZXMultiFormatWriter alloc] init];
ZXBitMatrix* result = [writer encode:@"12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678"
format:kBarcodeFormatQRCode
width:1750
height:1750 hints:[[ZXEncodeHints alloc] init] error:&error];
if (result) {
CGImageRef image = [[ZXImage imageWithMatrix:result] cgimage];
self.image.image = [[NSImage alloc] initWithCGImage:image size:NSMakeSize(1750, 1750)];
} else {
NSLog(@"error: %@", error);
}
¿Qué está mal en esto?