Re: Autolayout Problem/Question
Re: Autolayout Problem/Question
- Subject: Re: Autolayout Problem/Question
- From: Dave <email@hidden>
- Date: Mon, 22 May 2017 15:05:27 +0200
Hi,
Thanks a lot - That’s what I was looking for! I added a 1:1 Aspect Ratio constraint to the Root StackView and it now works ok.
I have another question regarding Auto Layout and XCode.
In XCode/IB I’ve designed these views in Landscape. I started with the iPhone 4s which is the Smallest I could find in IB and then moved on to iPhone SE, iPhone 7 and 7+. These all seem to work ok in Landscape in XCode, but if I switch to portrait it stops working.
I want the Root Stack View to be placed to the left of the Screen in Landscape and the Top of the Screen in Portrait. Can I do this with one set of constraints or is it better to have two separate View Hierarchies and switch between them in code?
All the Best
Dave
_______________________________________________
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