Advertisement
Guest User

Untitled

a guest
Apr 19th, 2014
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. [Register ("AppDelegate")]
  2. public partial class AppDelegate : UIApplicationDelegate
  3. {
  4. // class-level declarations
  5. UIWindow window;
  6. HomeViewController viewController;
  7. //
  8. // This method is invoked when the application has loaded and is ready to run. In this
  9. // method you should instantiate the window, load the UI into it and then make the window
  10. // visible.
  11. //
  12. // You have 17 seconds to return from this method, or iOS will terminate your application.
  13. //
  14. public override bool FinishedLaunching (UIApplication app, NSDictionary options)
  15. {
  16. UIApplication.SharedApplication.ApplicationIconBadgeNumber = 0;
  17.  
  18. window = new CustomWindow (UIScreen.MainScreen.Bounds);
  19.  
  20. viewController = new HomeViewController ();
  21. window.RootViewController = viewController;
  22. window.MakeKeyAndVisible ();
  23.  
  24. UIRemoteNotificationType notificationTypes = UIRemoteNotificationType.Alert | UIRemoteNotificationType.Badge;
  25. UIApplication.SharedApplication.RegisterForRemoteNotificationTypes(notificationTypes);
  26.  
  27. return true;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement