コード例 #1
0
        protected virtual void SetupLayoutConstraints()
        {
            this.SubviewsDoNotTranslateAutoresizingMaskIntoConstraints();
            this.AddConstraints(
                SearchBar.AtTopOfSafeArea(this),
                SearchBar.AtLeftOf(this),
                SearchBar.AtRightOf(this),
                SearchBar.Above(CollectionView));

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

            this.AddConstraints(
                //CollectionView.Above(SearchBar),
                CollectionView.AtBottomOfSafeArea(this),
                CollectionView.AtLeftOf(this),
                CollectionView.AtRightOf(this));
        }