Skip to content

Instantly share code, notes, and snippets.

@koyopro
Last active August 29, 2015 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save koyopro/ebd4b38a7fb3ef8de799 to your computer and use it in GitHub Desktop.
Save koyopro/ebd4b38a7fb3ef8de799 to your computer and use it in GitHub Desktop.
iOSで画像からQRコードを読み取る ref: http://qiita.com/yoshida-k/items/78f2ef2ffa38361a73fa
-(BOOL)hasQRCode:(UIImage *)image
{
ZBarImage *zbarimg = [[ZBarImage alloc] initWithCGImage:image.CGImage];
ZBarImageScanner *scanner = [[ZBarImageScanner alloc] init];
BOOL hasqr = [scanner scanImage:zbarimg];
return hasqr;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment