在Xamarin中使用Scrollview自动布局 [英] Autolayout with Scrollview in Xamarin

查看:74
本文介绍了在Xamarin中使用Scrollview自动布局的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

快要疯了...

我正在使用情节提要....但如果可以通过编程方式完成,则我将立即更改

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

  • 我设置了滚动视图以填充父视图(x和y)
  • 我将滚动条间距处理程序添加到视图的边界(在 全部四个)
  • 我在底部附近添加了一个带有约束的按钮
  • 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.

我还没有找到任何有关如何在xamarin中正确使用滚动视图的示例,如果有人知道任何示例都会受到赞赏,那么xamarin是我的新手.谢谢!

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!

更新:IOS-CLASSIC

UPDATE: IOS-CLASSIC

推荐答案

适用于以下约束

您也可以检查 UIScrollView可滚动内容大小歧义

这篇关于在Xamarin中使用Scrollview自动布局的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆