[英]Add an Equal Widths constraint using the Xamarin iOS Designer
In my Xamarin app, I am trying to add a single view to a scroll view. 在我的Xamarin应用程序中,我试图将单个视图添加到滚动视图。 Based on recommendations online, I am trying to set an Equal Widths Constraint between the view and the main view of the controller, but I don't see any way to do it in the Xamarin Studio or Visual Studio designers.
根据在线建议,我试图在控制器的视图和主视图之间设置“等宽约束”,但是在Xamarin Studio或Visual Studio设计器中我看不到任何方法可以做到。
Can this type of constraint be added using the designer? 可以使用设计器添加这种约束吗?
You can set equal widths between views by doing the following (screenshots to follow): 您可以通过执行以下操作(在以下屏幕截图中)在视图之间设置相等的宽度:
Constraint Editing Mode
Constraint Editing Mode
Label
). Label
)。 CTRL
, then click and drag on the sideways I
in the middle-bottom of the view. CTRL
,然后单击并拖动视图中间底部的侧面I
You'll notice a blue line appears.
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.