public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            View.BackgroundColor = UIColor.White;

            animationView = LOTAnimationView.AnimationNamed("trophy");

            View.AddSubview(animationView);

            animationView.PlayWithCompletion((animationFinished) =>
            {
                UIApplication.SharedApplication.Delegate.FinishedLaunching(UIApplication.SharedApplication,
                                                                           new Foundation.NSDictionary());
            });
        }
Beispiel #2
0
        public override void  ViewDidLoad()
        {
            base.ViewDidLoad();
            // Perform any additional setup after loading the view, typically from a nib.

            animation.Frame       = this.View.Bounds;
            animation.ContentMode = UIViewContentMode.ScaleAspectFit;
            this.View.AddSubview(animation);
            animation.PlayWithCompletion((animationFinished) => {
                // Do Something
                //Dialog.ShowAlert("LottieTest", "HBD", "OK");
                var launchVC   = new LaunchAnimationController();
                var launchView = launchVC.View;
                var loginVC    = Storyboard.InstantiateViewController("LoginViewController") as LoginViewController;
                var loginView  = loginVC.View;
                this.PresentViewController(loginVC, false, null);
            });
        }