Skip to content

Instantly share code, notes, and snippets.

@jfversluis
Last active August 22, 2018 06:59
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 jfversluis/26582d48135092b696fcf4afff91a031 to your computer and use it in GitHub Desktop.
Save jfversluis/26582d48135092b696fcf4afff91a031 to your computer and use it in GitHub Desktop.
Adding initialization code on iOS
[Register("AppDelegate")]
public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate
{
public override bool FinishedLaunching(UIApplication app, NSDictionary options)
{
global::Xamarin.Forms.Forms.Init();
// Add this...
ZXing.Net.Mobile.Forms.iOS.Platform.Init();
LoadApplication(new App());
return base.FinishedLaunching(app, options);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment