Esempio n. 1
0
        private void SetupConstraints()
        {
            ContentView.SubviewsDoNotTranslateAutoresizingMaskIntoConstraints();

            ContentView.AddConstraints(
                _imageView.AtTopOf(ContentView),
                _imageView.AtLeftOf(ContentView),
                _imageView.AtBottomOf(ContentView),
                _imageView.AtRightOf(ContentView)
                );
        }
Esempio n. 2
0
        private void SetupConstraints()
        {
            ContentView.SubviewsDoNotTranslateAutoresizingMaskIntoConstraints();

            ContentView.AddConstraints(
                _imageView.AtTopOf(ContentView, 10),
                _imageView.AtLeftOf(ContentView, 10),
                _imageView.AtBottomOf(ContentView, 10),
                _imageView.AtRightOf(ContentView, 10),
                _imageView.Height().EqualTo(80),
                _imageView.Width().EqualTo(80)
                );
        }