Auto-layout, Forcing a top-level view to hug its contents
Auto-layout, Forcing a top-level view to hug its contents
- Subject: Auto-layout, Forcing a top-level view to hug its contents
- From: Eyal Redler via Cocoa-dev <email@hidden>
- Date: Fri, 4 Nov 2022 02:39:51 +0200
I have a view in a nib, the constraints are setup so that the view should
expand/contract to fit the contents and the nib is localized for several
languages. When I check the frame size of the view in awakeFromNib the size I
get is the same as the size set in the nib.
I tried forcing the view to resize by calling layout but this didn't change the
frame size.
Is there a way to force the view to resize, before putting it on the screen?
TIA
Eyal Redler
------------------------------------------------------------------------------------------------
"If Uri Geller bends spoons with divine powers, then he's doing it the hard
way."
--James Randi
www.eyalredler.com
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden