AppDelegate.cs 639 B

123456789101112131415161718192021222324252627282930
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using Foundation;
  5. using UIKit;
  6. using Xamarin.Forms;
  7. namespace XamarinInsights.iOS
  8. {
  9. [Register ("AppDelegate")]
  10. public partial class AppDelegate : UIApplicationDelegate
  11. {
  12. UIWindow window;
  13. public override bool FinishedLaunching (UIApplication app, NSDictionary options)
  14. {
  15. Forms.Init ();
  16. App.RunOnMainThread = (a) => this.BeginInvokeOnMainThread (() => a ());
  17. window = new UIWindow (UIScreen.MainScreen.Bounds);
  18. window.RootViewController = App.GetMainPage ().CreateViewController ();
  19. window.MakeKeyAndVisible ();
  20. return true;
  21. }
  22. }
  23. }