AppDelegate.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using MonoTouch.Foundation;
  5. using MonoTouch.UIKit;
  6. namespace MonoGame.Samples.Primitives
  7. {
  8. // The UIApplicationDelegate for the application. This class is responsible for launching the
  9. // User Interface of the application, as well as listening (and optionally responding) to
  10. // application events from iOS.
  11. [Register ("AppDelegate")]
  12. public partial class AppDelegate : UIApplicationDelegate
  13. {
  14. // class-level declarations
  15. UIWindow window;
  16. //
  17. // This method is invoked when the application has loaded and is ready to run. In this
  18. // method you should instantiate the window, load the UI into it and then make the window
  19. // visible.
  20. //
  21. // You have 17 seconds to return from this method, or iOS will terminate your application.
  22. //
  23. public override bool FinishedLaunching (UIApplication app, NSDictionary options)
  24. {
  25. // create a new window instance based on the screen size
  26. window = new UIWindow (UIScreen.MainScreen.Bounds);
  27. // If you have defined a view, add it here:
  28. // window.AddSubview (navigationController.View);
  29. // make the window visible
  30. window.MakeKeyAndVisible ();
  31. return true;
  32. }
  33. }
  34. }