Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Register ("AppDelegate")]
- public partial class AppDelegate : UIApplicationDelegate
- {
- // class-level declarations
- UIWindow window;
- HomeViewController viewController;
- //
- // This method is invoked when the application has loaded and is ready to run. In this
- // method you should instantiate the window, load the UI into it and then make the window
- // visible.
- //
- // You have 17 seconds to return from this method, or iOS will terminate your application.
- //
- public override bool FinishedLaunching (UIApplication app, NSDictionary options)
- {
- UIApplication.SharedApplication.ApplicationIconBadgeNumber = 0;
- window = new CustomWindow (UIScreen.MainScreen.Bounds);
- viewController = new HomeViewController ();
- window.RootViewController = viewController;
- window.MakeKeyAndVisible ();
- UIRemoteNotificationType notificationTypes = UIRemoteNotificationType.Alert | UIRemoteNotificationType.Badge;
- UIApplication.SharedApplication.RegisterForRemoteNotificationTypes(notificationTypes);
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement