From the course: iOS Development: Auto Layout Programmatically
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Add Visual Format Language to subviews - iOS Tutorial
From the course: iOS Development: Auto Layout Programmatically
Add Visual Format Language to subviews
- [Instructor] We got out button view on to the label view as visual layout language. I'll get a head start because I actually have some code that's already written over here in layout views. Remember that equal margin stuff from the stack view so I've got some of this already written and I can copy that, move it up to add label view and stick it inside where the constraints are. And then I can start modifying this. First thing I wanna modify is the views themselves 'cause we're gonna have new views. And so the first one, let's just delete all that so that we don't have all this junk in the way, and quote quote label, and that's gonna be the label. And quote quote and image view, and that's the image view. Next I'm gonna add metrics which I didn't have in the original one here, and that'll be typed out as string any and I'll leave a blank metric for now but we're gonna get to it in a little bit. And then I'm gonna copy this constraint here and duplicate it with copy paste. And now I'm…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
(Locked)
Embed subviews6m 57s
-
(Locked)
Add constraints to subviews7m 42s
-
(Locked)
Add Visual Format Language to subviews7m 4s
-
(Locked)
Intrinsic content size6m 36s
-
(Locked)
Inequalities in constraints8m 23s
-
(Locked)
Priorities in coded constraints7m 8s
-
(Locked)
Size ranges in Visual Format3m 33s
-
(Locked)
Challenge: Pasta56s
-
(Locked)
Solution: Pasta7m 54s
-
(Locked)
-
-