Beispiel #1
0
 public static void ConfigureScrollView(UIScrollView scrollView, UIView contentView, Guid fixerID)
 {
     contentView.LayoutIfNeeded();
     scrollView.RemoveAndDisposeChildSubViews();
     scrollView.TranslatesAutoresizingMaskIntoConstraints  = false;
     contentView.TranslatesAutoresizingMaskIntoConstraints = false;
     scrollView.AddSubviewDockFull(contentView);
     scrollView.ViewForZoomingInScrollView = (x) => contentView;
     AdjustScrollView(scrollView, contentView, fixerID);
 }
 public override void ViewDidLoad()
 {
     base.ViewDidLoad();
     _contentView.TranslatesAutoresizingMaskIntoConstraints = false;
     _contentView.Frame = new CGRect(CGPoint.Empty, _contentView.Frame.Size);
     _scrollView.AddSubviewDockFull(_contentView);
     _scrollView.ViewForZoomingInScrollView = (x) => _contentView;
     if (_isInternalScrollView)
     {
         this.View.AddSubviewDockFull(_scrollView);
     }
 }