AppDelegate.cs 1.2 KB

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