AppDelegate.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. using Foundation;
  2. using UIKit;
  3. namespace CreditCardValidation.iOS
  4. {
  5. // The UIApplicationDelegate for the application. This class is responsible for launching the
  6. // User Interface of the application, as well as listening (and optionally responding) to
  7. // application events from iOS.
  8. [Register("AppDelegate")]
  9. public class AppDelegate : UIApplicationDelegate
  10. {
  11. // class-level declarations
  12. UIViewController viewController;
  13. UIWindow window;
  14. //
  15. // This method is invoked when the application has loaded and is ready to run. In this
  16. // method you should instantiate the window, load the UI into it and then make the window
  17. // visible.
  18. //
  19. // You have 17 seconds to return from this method, or iOS will terminate your application.
  20. //
  21. public override bool FinishedLaunching(UIApplication app, NSDictionary options)
  22. {
  23. window = new UIWindow(UIScreen.MainScreen.Bounds);
  24. viewController = new UINavigationController(new CreditCardValidationScreen());
  25. window.RootViewController = viewController;
  26. window.MakeKeyAndVisible();
  27. return true;
  28. }
  29. }
  30. }