Auto Layout Constraints in iOS

Поділитися
Вставка
  • Опубліковано 22 сер 2024
  • Learn how to use Auto Layout to layout elements in UIKit on an iOS device.
    🔗Code:
    github.com/Sam...
    🔗Entire iOS Playlist
    • iOS with UIKit
    🔗Moar Links
    My Website: www.sammeechwa...
    Instagram: / meech_ward
    Github: github.com/org...

КОМЕНТАРІ • 19

  • @marcoscabbiolo2087
    @marcoscabbiolo2087 Рік тому +1

    Needed a complete and straight to the point explanation of all this and you nailed it. Thanks for sharing!

  • @dugrut1325
    @dugrut1325 2 роки тому

    THANKS! I learnt a lot. I did some coding about 5 years ago and forgot absolutely everything, crazy. Anyway, I'm learning all over again. Constraints are a killer to my enthusiasm.

  • @JeromePullenJr
    @JeromePullenJr 2 роки тому

    I'm watching this entire playlist and liking them all haha.. awesome stuff man!!

  • @AndresGutierrez-nb6qr
    @AndresGutierrez-nb6qr Рік тому

    Amazing teacher! Video was so perfect, well done and thank you!

  • @donovanpalma8186
    @donovanpalma8186 2 роки тому

    Really well done video. Effective examples communicating complicated concepts with simplicity

  • @marcomarcucci8329
    @marcomarcucci8329 10 місяців тому

    Good video🎉❤

  • @user-yd9xy3rb4x
    @user-yd9xy3rb4x 3 роки тому

    the best dev channels are the smallest.

  • @LordStaind
    @LordStaind 3 роки тому

    Hi Sam, just found your channel and subscribed. What are your thoughts on programmatic UIs vs Storyboards and what do most start ups or tech companies uses? Thanks in advance.

    • @SamMeechWard
      @SamMeechWard  3 роки тому +8

      Honestly, either can be used. A lot of places use programmatic UIs because they're afraid of merge conflicts, but there are solutions to this problem that I cover in this video ua-cam.com/video/BNYrATOT4ic/v-deo.html
      I usually use storyboards because less code in a view controller is always a good thing. There are many reasons why I would choose to use storyboards over creating the view programmatically, but that's the main one.
      Swift UI is definitely the future of UI in all apple products, so that's where you should be looking if you want to be using the newest and nicest stuff. That being said, when I speak to most large companies, they are not using swift UI yet. Some are starting to add some Swift UI components, but only very slowly. I know some companies that still use Objective-C as their main language, so it's hard to tell what the best thing to learn is for all companies.
      Also, while bigger companies building apps natively, startups are generally using react-native. Which is more comparable to swift UI than using UIKit.
      So it's a difficult question to answer.
      Here's My advice to any programmer looking to be relevant in the industry. Go for quantity over quality. Build lots of things and practice using many different technologies. Release your apps, put them on the app store, and keep building more apps. Try and build lots of different kinds of apps and learn what you need as you build them. You'll get more "real" and valuable experience doing that than just trying to learn the correct way of doing something.

  • @user-yd9xy3rb4x
    @user-yd9xy3rb4x 3 роки тому

    10 years in dev, cool

  • @shaheempp1686
    @shaheempp1686 2 роки тому

    Do you use UIKit programming in real life or the storyboard?

    • @SamMeechWard
      @SamMeechWard  2 роки тому

      SwiftUI. But before that, both. I would start by using storyboards then switch to programmatic when needed for animations or more dynamic layout

    • @shaheempp1686
      @shaheempp1686 2 роки тому

      @@SamMeechWard I tried the programmatic method... It was difficult for me since I didn't know if the element was where I expected it to be until I run. How did you deal with that issue?

    • @SamMeechWard
      @SamMeechWard  2 роки тому +1

      @@shaheempp1686 When it gets too difficult, do the angry footloose dance to let off stress

  • @aprilm2941
    @aprilm2941 4 роки тому

    🤗

  • @vladimirmoor
    @vladimirmoor Рік тому

    Good video, thanks a lot! Also, it would be a little simple to just write "labelCenterConstraint.isActive.toggle() and labelTopConstraint.isActive.toggle()" to flip its states

  • @db123321db123
    @db123321db123 Рік тому

    thanks for your nice tutorial.