In the size inspector you can set an intrinsic content size. 
Click the pop up button and choose placeholder. 
The rest should become obvious. 


Sent from my iPhone

> On Nov 27, 2015, at 12:44 PM, Gerriet M. Denkmann <gerr...@mdenkmann.de> 
> wrote:
> 
> Xcode 7.1, OS X 10.10.5
> 
> A xib with an NSBox which contains two Labels and the following vertical 
> constraints:
> 
> ^
> |        Default between Label1.Top and Superview.Top
> v
> Label1    height = 17
> ^
> |        Default between Label1.Bottom and Label2.Top
> v
> Label2    height = 14
> ^
> |    Default between Label2.Bottom and Superview.Bottom
> v
> 
> The box has no height constraint - it is expected to fit it’s height to it’s 
> content.
> 
> But Xcode tells me that both Label1 and Label2 “Need constraints for: Y 
> position or height”
> 
> How can I persuade Xcode to work as expected?
> 
> Gerriet.
> 
> 
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Xcode-users mailing list      (Xcode-users@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/xcode-users/dangerwillrobinsondanger%40gmail.com
> 
> This email sent to dangerwillrobinsondan...@gmail.com

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (Xcode-users@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to