Skip to content

Instantly share code, notes, and snippets.

@matsukurou
Created July 5, 2015 09:32
Show Gist options
  • Save matsukurou/9b4140ee36a744b99e5f to your computer and use it in GitHub Desktop.
Save matsukurou/9b4140ee36a744b99e5f to your computer and use it in GitHub Desktop.
Xamarin.Formsでマップを初期化する (iOS、AppDelegate.cs)
[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();
// Xamarin.Froms.Mapsの初期化
Xamarin.FormsMaps.Init();
// Code for starting up the Xamarin Test Cloud Agent
#if ENABLE_TEST_CLOUD
Xamarin.Calabash.Start();
#endif
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