![](/img/trans.png)
[英]Auto-layout XIB embedded in programmatic UIView not sizing to parent
[英]Storyboard: align button in custom UIView to another button in parent UIView using auto-layout constraints?
假定使用Xib文件設計的自定義UIView,CustomView。 在CustomView內部是一個UIButton,CustomButton。
ParentView是一個包含CustomView的UIView。
使用情節提要,是否可以創建一個自動布局約束,以使CustomButton與ParentView中的另一個按鈕居中對齊?
不,您不可能在情節提要中做您想做的事情。 您將必須以編程方式進行操作。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.