Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 1011 Bytes

README.md

File metadata and controls

31 lines (21 loc) · 1011 Bytes

QRCodeSample

An easy application for create and scan QR code on iOS using Xamarin.iOS

You can create a QRCode by using this code:

UIimage qrCodeImage = QRCodeCreater.Instance().GetQRCodeImageByString(sourceStr,showQRCodeImgView.Frame.Width);

And you can scan a QRCode by using the Extension Methods in every UIViewController like:

this.ShowQRCodeReaderViewController((result)=>{
	  UIAlertView alert = new UIAlertView("Result",result,null,"OK",null);
	  alert.Show();
	});

Or the origin method, like:

QRCodeReaderViewController.Intance().Show(controller.NavigationController,(result)=>{
	  UIAlertView alert = new UIAlertView("Result",result,null,"OK",null);
	  alert.Show();
	});

This are some screenshot showing the effect:

Generate a image:

Scanning:

Result pop up: