• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Autolayout Problem/Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Autolayout Problem/Question (From: Dave <email@hidden>)

  • Prev by Date: Re: NSBezierPath on iOS?
  • Next by Date: View Controllers, Views and Storyboards
  • Previous by thread: Autolayout Problem/Question
  • Next by thread: View Controllers, Views and Storyboards
  • Index(es):
    • Date
    • Thread