Skip to content

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

Notifications You must be signed in to change notification settings

lwnwowone/QRCodeSample

Repository files navigation

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:

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages