Auto Layout Constraints in iOS

Sdílet
Vložit
  • čas přidán 23. 07. 2020
  • Learn how to use Auto Layout to layout elements in UIKit on an iOS device.
    🔗Code:
    github.com/Sam-Meech-Ward/iOS...
    🔗Entire iOS Playlist
    • iOS with UIKit
    🔗Moar Links
    My Website: www.sammeechward.com
    Instagram: / meech_ward
    Github: github.com/orgs/Sam-Meech-Ward
  • Zábava

Komentáře • 19

  • @dugrut1325
    @dugrut1325 Před 2 lety

    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 Před 2 lety

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

  • @marcoscabbiolo2087
    @marcoscabbiolo2087 Před rokem

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

  • @AndresGutierrez-nb6qr

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

  • @donovanpalma8186
    @donovanpalma8186 Před 2 lety

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

  • @db123321db123
    @db123321db123 Před rokem

    thanks for your nice tutorial.

  • @marcomarcucci8329
    @marcomarcucci8329 Před 7 měsíci

    Good video🎉❤

  • @LordStaind
    @LordStaind Před 3 lety

    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  Před 3 lety +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 czcams.com/video/BNYrATOT4ic/video.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 Před 2 lety

    10 years in dev, cool

  • @user-yd9xy3rb4x
    @user-yd9xy3rb4x Před 2 lety

    the best dev channels are the smallest.

  • @shaheempp1686
    @shaheempp1686 Před 2 lety

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

    • @SamMeechWard
      @SamMeechWard  Před 2 lety

      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 Před 2 lety

      @@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  Před 2 lety +1

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

  • @aprilm2941
    @aprilm2941 Před 3 lety

    🤗

  • @vladimirmoor
    @vladimirmoor Před rokem

    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