Skip to content
81: Just Do It In Code episode artwork

EPISODE · Aug 19, 2015 · 42 MIN

81: Just Do It In Code

from iOhYes · host Darryl Thomas & John Sextro

Tweet Shoutouts "@mtjc_podcast is just a bunch of Canadians being happy and friendly and taking about IOS" LOL @iOhYesPodcast— Jack Wu (@JackTripleU) August 12, 2015 @JackTripleU @iOhYesPodcast we're actually 50/50 US/CDN. The yanks were absent on Canada Day, eh?— MTJC Podcast (@mtjc_podcast) August 12, 2015 @JackTripleU @iOhYesPodcast Oh and thanks for the mention. A case of maple syrup is on the way. BTW how do you say OS X? Asking for a friend— MTJC Podcast (@mtjc_podcast) August 12, 2015 @iOhYesPodcast inspiring story about how accessibility enabled someone to grocery shops themselves for the first time— Andy Obusek (@obusek) August 13, 2015 Discussion - UIStackView Referred to by Apple as “your first stop for interfaces built with Auto Layout” in the description of WWDC15 Session 218 Manages the constraints of a vertical or horizontal linear layout Easy migration of IB-based layouts using the new “Embed in Stack View” button Subviews that are to be managed by the stack view are added to the arrangedSubviews property. This allows decorative views to be added directly to subviews without affecting the arrangement. Potential pitfall: Removing a view from the arrangedSubviews array does not remove it as a subview. The stack view no longer manages the view’s size and position, but the view is still part of the view hierarchy, and will be rendered on screen if it is visible. Multiple distribution styles UIStackViewDistributionFill - A layout where the stack view resizes its arranged views so that they fill the available space along the stack view’s axis. When the arranged views do not fit within the stack view, it shrinks the views according to their compression resistance priority. If the arranged views do not fill the stack view, it stretches the views according to their hugging priority. UIStackViewDistributionFillEqually - A layout where the stack view resizes its arranged views so that they fill the available space along the stack view’s axis. The views are resized so that they are all the same size along the stack view’s axis. UIStackViewDistributionFillProportionally - A layout where the stack view resizes its arranged views so that they fill the available space along the stack view’s axis. Views are resized proportionally based on their intrinsic content size along the stack view’s axis. UIStackViewDistributionEqualSpacing - A layout where the stack view positions its arranged views so that they fill the available space along the stack view’s axis. When the arranged views do not fill the stack view, it pads the spacing between the views evenly. If the arranged views do not fit within the stack view, it shrinks the views according to their compression resistance priority. UIStackViewDistributionEqualCentering - A layout that attempts to position the arranged views so that they have an equal center-to-center spacing along the stack view’s axis, while maintaining the spacing property’s distance between views. If the arranged views do not fit within the stack view, it shrinks the spacing until it reaches the minimum spacing defined by its spacing property. If the views still do not fit, the stack view shrinks the arranged views according to their compression resistance priority. Picks Chad Thoughts on Swift 2 Errors Darryl WWDC15 Session 218 WWDC15 Session 219 The Genius of Protocols - Wooji Juice Alternative show title suggestions Your first stop Not your final destination Beefing it up Microphone Hungry

Episode metadata supplied by the publisher feed · Published Aug 19, 2015

Embed this episode

Ready to play

81: Just Do It In Code

0:00 42:46

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

No similar episodes found.

No similar podcasts found.

Frequently Asked Questions

How long is this episode of iOhYes?

This episode is 42 minutes long.

When was this iOhYes episode published?

This episode was published on August 19, 2015.

Can I download this iOhYes episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.
URL copied to clipboard!