Use constraints on your storyboard to control the layout of controls in the view.
- [Instructor] Before we leave our iOS application,…there's one last thing I wanna fix up.…We go back to our Main.storyboard.…You remember that on our detail page,…our labels were getting cut off.…Now it wouldn't be a big deal,…and you might just think you could go resize them.…But we're actually gonna use something…called Constraints in iOS layout.…So our Stack View is there and I'm gonna up here…and click this button to enable…our Constraints Editing Mode.…And you'll see that I get some handles.…Zoom in a little bit more, on my Stack View there.…
Now there's a couple different handles,…you can see the T-shaped handles on each of the edges…and then a little I beam handles as well.…If I mouse over this I beam,…you see it says I can click to pin the size of this view.…So this is gonna be my height.…I'm gonna click that and choose height…and then I'm gonna grab this I beam…which is, I could click it to pin the width…but what I actually wanna do is drag it…and anchor it to the parent view that we've got there.…So now the height will be fixed but the width should be…
- Cross-platform code reuse
- Visual Studio install guidelines
- Remote Windows development
- Creating a .NET Standard library
- Testing on an Emulator
- Navigating a segue
- Provisioning and testing on a device
- Using constraints for a layout
- Creating list views and detail views
Skill Level Beginner
1. Welcome to Xamarin
2. Xamarin on Mac
3. Xamarin on Windows
4. Building a Shared Library
5. Building an Android Application
6. Building an iOS Application
7. Building a UWP Application
Next steps1m 11s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.