• 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: Collection View Storyboard layout wrong in Xcode 8.x
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Collection View Storyboard layout wrong in Xcode 8.x


  • Subject: Re: Collection View Storyboard layout wrong in Xcode 8.x
  • From: Laurent Daudelin <email@hidden>
  • Date: Wed, 28 Sep 2016 13:03:53 -0400

Another problem I think I found in Xcode 8 with views in the storyboard is that if you try to design your views in landscape mode, even though you indicate at the  bottom the correct device and orientation, when you build, Xcode will complain that a few navigation bar will have a different size at runtime. I reset it a few times. It clears the warnings but they come back on the next compilation.

-Laurent.
-- 
Laurent Daudelin email@hidden
AIM/iChat/Skype:LaurentDaudelin  http://www.nemesys-soft.com/
Logiciels Nemesys Software

On Wed, Sep 28, 2016 at 12:34 PM, Fritz Anderson <email@hidden> wrote:
[READERS: I’ve addressed only one of the OP’s concerns.]

On 27 Sep 2016, at 5:58 PM, Doug Hill <email@hidden> wrote:
>
> • In Xcode 7.x all of my view controllers in my main Storyboard had their views sized to 600 x 600. I then open this storyboard in Xcode 8, and it asks me to pick a size class (e.g. compact width, regular height) to start with. Now all my views in the storyboard have their autolayout constraints broken since everything is still laid out for 600 x 600 but the widths/heights of the views are adjusted to the size class I picked above. There are numerous autolayout warnings that everything is laid out wrong, and I now I appear to need to re-layout ALL my views in the storyboard to correct for these problems.

One interpretation of what you’re saying is that you have lots of yellow triangles. Click the triangle at the top-right corner of a view controller scene in which one appears; you’ll see a list of warnings that this or that view is constrained to certain bounds, and isn’t currently of that size.

Click one of the warning triangles. Xcode should explain, and offer a number of options. Select the first (Update Frames). Check the box that says “Apply to all frames in container”. Click “Fix Misplacement”. That will conform all views to their constraints, clearing those warnings. If you’re lucky, you’ll have cleared all of them.


        — F



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Collection View Storyboard layout wrong in Xcode 8.x
      • From: "Dr. Michael Lauer" <email@hidden>
References: 
 >Collection View Storyboard layout wrong in Xcode 8.x (From: Doug Hill <email@hidden>)
 >Re: Collection View Storyboard layout wrong in Xcode 8.x (From: Fritz Anderson <email@hidden>)

  • Prev by Date: Re: Collection View Storyboard layout wrong in Xcode 8.x
  • Next by Date: Re: Collection View Storyboard layout wrong in Xcode 8.x
  • Previous by thread: Re: Collection View Storyboard layout wrong in Xcode 8.x
  • Next by thread: Re: Collection View Storyboard layout wrong in Xcode 8.x
  • Index(es):
    • Date
    • Thread