Reputation: 617
Using Xcode's Interface Builder, how would I set the width of ABC view to be 30% the width of ZYZ view? In this case, XYZ view can be the super view of ABC view or it can be another view on the same view hierarchy level.
Upvotes: 2
Views: 131
Reputation: 104082
Select the 2 views, and give them an equal width constraint. Edit this constraint to make the multiplier 0.3 (or 3.33 depending on which item is the first one in the constraint).
Upvotes: 4