UIStackView Tutorial - Programmatic - Xcode 11

preview_player
Показать описание
In this Swift tutorial we'll discuss the power of the UIStackView and we'll create it programmatically. No storyboard. I'll show you the basics of setting up the UIStackView using the alignment of UIButtons in a survey as an example. UIStackViews can be very powerful and allow your user interface to adapt to many different screen sizes as well as landscape or portrait orientations.

This tutorial was built using Xcode 11 and Swift 5.1

See how to build in using Storyboard here:

If you like my teaching style, I've released my first iOS dev course which is all about the take-home project job interview for iOS developers.

Link to my book - How I Became an iOS Developer:

Books, Hoodies & Goodies:

Check out my podcast, iOS Dev Discussions:

I stream gaming content on Twitch:

Book and learning recommendations that help out the channel if you decide to purchase (Affiliate Links):

Ray Wenderlich Books:

Ray Wenderlich Videos:

Paul Hudson's Hacking With Swift:

Learn Advanced Swift Here:

Links to my iOS Dev Setup & iOS Dev Book Recommendations

Personal Links:

Twitter:

Instagram:
@seanallen_dev
Рекомендации по теме
Комментарии
Автор

Loving the programmatic series! You have inspired me to delete all storyboard!

LHNguyens
Автор

Great idea to show us the documentation

robertohalgravez
Автор

Hey, thank you Sean! Pls do more tutorials on programmatic UIs. Thanks!

laigvk
Автор

my equals never aligned, they are like there will be always a diffrence in the alignment any hack for this. and also very helpfull video thankyou ❤💕.

kalashchoudhary
Автор

Thank you for this. You are an inspiration.

kevinbenavides
Автор

Hi, I want to learn to build all my IOS apps programatically, but there isn’t many resources out there to do so, I was wondering how you learn to do this programatically, like where the information is available to build an entire app programatically, and the best places/resources to do this from. This is all new to me and I don't really like storyboards, but I have no idea where else to look as no other resource is helpful apart from yours. If you could let me know that would be really helpful. Thanks

Zara.x.o.x.o
Автор

Can you post the link for the starter project? thanks! love your tutorials!

teaberry
Автор

Hey Sean, thanks and great video again! Just a quick question about the for loop with buttons. Is there a way to change button Text color by using another function? I made you tutorial and try to set the color using "setTitleColor(.yellow, for state: .normal)" but that gives an "not in scope" error and tried several things but with no result yet. Many thanks!

andrevdw
Автор

Hey love the content. Quick question would it be best to create everything programmatically or use story board?

brucetargaryen
Автор

Hello Sean I have a question, im using Xcode 11, and I can't create a navigationBar in app delegate, I try in ScenceDelegate but the view background color is black, and using app delegate the view appears but without the navigation bar, I don't use the SWiftUI, in Xcode 11 change to create the navigation ?.

I do this....
in Xcode 10 its ok....

window = UIWindow(frame: UIScreen.main.bounds)
window.makeKeyandvisible()

let navigation = myViewController)
window.rootViewController = navigation

adriancervantes
Автор

Hi, do you have a tutorial similar to this but for a UIScrollView?

monsterbeast
Автор

But the button are not clickable?? how to make it clickable ??

PrakashChAwal
visit shbcf.ru