IBOutlet, IBAction & IBOutletCollection Tutorial | Xcode 11 & Swift 5.1

Sdílet
Vložit
  • čas přidán 27. 08. 2024

Komentáře • 54

  • @Apollo-yg5qc
    @Apollo-yg5qc Před 4 lety +11

    because of these headaches with StoryBoard I'm learning to create everything in pure code, it's much less headache :) Thank you Sean, another great explanation video, keep up the good work!

  • @DruideRC
    @DruideRC Před rokem +1

    thank you about "referencing outlet collections", that save the week, i was stuck on that for a week
    thank you

  • @NotNoAndrew
    @NotNoAndrew Před 4 lety +14

    I uses Refactor > Rename to rename my IBOutlets, it changes the name in the Storyboard as well as code.

    • @byaruhaf
      @byaruhaf Před 4 lety +2

      Thanks for sharing, didn't know that.

    • @seanallen
      @seanallen  Před 4 lety +1

      I knew there was a way 😀. Old habits die hard. Thanks for sharing.

    • @NotNoAndrew
      @NotNoAndrew Před 4 lety

      It’s only been available for the last few versions of Xcode so the old way is still viable

  • @mapcad9713
    @mapcad9713 Před 4 lety +3

    I really like your teaching style. It will be nice to see your Core Data tutorial !

    • @seanallen
      @seanallen  Před 4 lety +1

      Thanks! To be quite honest, I've never used Core Data (aside from early tutorials).

  • @ItsJustFil
    @ItsJustFil Před 4 lety +4

    Tip: you can also right click and drag from storyboard to the code as opposed to CTRL+drag. Also works on trackpads with two finger dragging

  • @adamm3122
    @adamm3122 Před 4 lety +2

    Ran into this issue toooo much in the beginning. Now... Right Click the word, Refactor > Rename. BAM!!!

  • @sajibalaram6978
    @sajibalaram6978 Před 2 měsíci +1

    Very good explanation

  • @AmitBiswastunebox
    @AmitBiswastunebox Před 4 lety +3

    Hi Sean one day you will be in big place man. The way you started your iOS journey it’s remarkable and I am super happy to move forward with all the content your create and learn more and more . Good wishes man .

  • @unlokia
    @unlokia Před 2 lety +1

    I can’t quite put my finger on what it is I like about your teaching style, but you are really are very clear and articulate and smooth. Thank you for this and God bless you 😃

  • @Natena
    @Natena Před 2 lety

    I appreciate "option + click" for the assistant window so much )))

  • @aagamvora3907
    @aagamvora3907 Před 2 lety

    What an excellent way of teaching.

  • @bibinjacob123
    @bibinjacob123 Před 4 lety +3

    Hey Sean, are you back? That's really awesome.

  • @RickPlaysStick
    @RickPlaysStick Před 4 lety +2

    Good points on the topic that Interface Builder and Code are each their own thing. I have made this error so many times. I don't use outlet collections much. I need to use them more. I would probably have made a custom button class for configuration rather than using an outlet collection.

  • @aaronbarlow7701
    @aaronbarlow7701 Před 3 lety +1

    Great video! My instructor was not very clear when showing us outlet and action. This cleared things right up!

  • @cactusdoodle8619
    @cactusdoodle8619 Před 2 lety

    you're a great teacher . hits the mark with my learning style as well

  • @omaralromaithi8078
    @omaralromaithi8078 Před 4 lety +1

    You are awesome , thanks for sharing knowledge 😀

  • @nasirmehmood_
    @nasirmehmood_ Před 2 lety +1

    Thank you!

  • @mattkruckeberg9798
    @mattkruckeberg9798 Před 4 lety +6

    This couldn’t have come at a better time. GET OUT OF MY HEAD!

  • @PoeheeHeLul
    @PoeheeHeLul Před 4 lety +1

    Total IOS beginner here (but somewhat experienced coder): when you were resetting the attributes, isn't there a more generic way? Like storing the original label in viewDidLoad and set it back (re-assign to label)? or is that not possible? This is a pain when there are more buttons or properties changed.
    Overasking of course, but would be just a bit more juicy...

  • @noelsoderstrom8706
    @noelsoderstrom8706 Před 4 lety +1

    When I open the assistant it says "No Assistant Results". Any help on what to do?

  • @JohnDoe-fe3zw
    @JohnDoe-fe3zw Před 4 lety +1

    Another Great video

  • @dandiuszielth
    @dandiuszielth Před 4 lety

    There's no easy way to access individual elements in an IBOutletCollection is there? From what I've looked up the order of the elements is random. I've seen someone assign each element its own tag (integer value) and then sort them in the outlet collection by their tag values, but I've seen other feedback say that sorting an IBOutletCollection does not really fit the purpose of an outlet collection. I appreciate your teaching style and think you'll have an answer to this I can actually grasp. What do you think?

  • @Emily-fo4ty
    @Emily-fo4ty Před 3 lety

    The link to your Beginner Auto Layout Video isn't working :( , says it's private - can you repost? would love to watch it

  • @admrts
    @admrts Před 2 lety

    thank you

  • @mattlucas7869
    @mattlucas7869 Před 3 lety

    this is quality

  • @user-sx6le2fm7k
    @user-sx6le2fm7k Před 4 lety +2

    good stuff)

  • @cobradjc579
    @cobradjc579 Před 3 lety

    How do you know where to click/drag the labels/buttons? Does it matter where you place it in the code or can it go anywhere?

  • @kevindesouza6143
    @kevindesouza6143 Před rokem

    IB outlets and action on are applicable to both SwiftUIand the UIKit. Right?

    • @seanallen
      @seanallen  Před rokem

      No, IBOutlets are not applicable to SwiftUI. It's a UIKit only thing. Specifically storyboards.

  • @JessicaxDeSouza
    @JessicaxDeSouza Před 3 lety

    What if im using swiftUI instead of storyboard, does this apply to swiftUI?

    • @seanallen
      @seanallen  Před 3 lety

      Nope. SwiftUI is completely different in this regard.

  • @donathmm3881
    @donathmm3881 Před 4 lety +2

    Forget crashes: Right click and rename 😏

  • @TheAhmadReza
    @TheAhmadReza Před 4 lety

    mvvm :(

  • @varunjohnjohn
    @varunjohnjohn Před 5 měsíci

    All this drag and drop is so lame in Xcode

    • @seanallen
      @seanallen  Před 5 měsíci

      In the modern world of SwiftUI, this no longer exists

  • @Evan_anish
    @Evan_anish Před rokem +1

    Thanks. This really helped a lot. I was stuck on this for hours. Keep up the great work!
    W vid

  • @digitalmaus
    @digitalmaus Před 2 lety

    how do i create an ibaction yo call a phone number? email? text message?