Autolayout with Scrollview in Xamarin

2019-09-11 04:37发布

问题:

It's driving nuts...

I am using storyboard....but if it this can be done programmatically, I would change immediately

  • I have a scroll view set to fill parents view (x and y)
  • I add the scroll pin spacing handlers to the borders of the view (in all four of them)
  • I add a button near the bottom with the constrains

When rotation occurs I'm unable to see my button.

I haven't found any example on how to correctly use scrollviews in xamarin, if anyone knows any example would be appreciated, I'm new with xamarin. Thanks!

UPDATE: IOS-CLASSIC

回答1:

Works with the following constraints

Also you can check UIScrollView Scrollable Content Size Ambiguity