簡體   English   中英

故事板:使用自動布局約束將自定義UIView中的按鈕與父UIView中的另一個按鈕對齊?

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM