Esempio n. 1
0
        protected override void SetupLayoutConstraints()
        {
            base.SetupLayoutConstraints();

            this.SubviewsDoNotTranslateAutoresizingMaskIntoConstraints();

            this.AddConstraints(
                HeaderLabel.WithSameCenterX(this),
                HeaderLabel.WithSameCenterY(this));

            this.AddConstraints(
                ResultLabel.Below(HeaderLabel, 24),
                ResultLabel.WithSameCenterX(this));

            this.AddConstraints(
                NextButton.Below(ResultLabel, 24),
                NextButton.WithSameCenterX(this));
        }