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

Поделиться
HTML-код
  • Опубликовано: 4 сен 2024

Комментарии • 54

  • @Apollo-yg5qc
    @Apollo-yg5qc 4 года назад +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!

  • @mapcad9713
    @mapcad9713 4 года назад +3

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

    • @seanallen
      @seanallen  4 года назад +1

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

  • @NotNoAndrew
    @NotNoAndrew 4 года назад +14

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

    • @byaruhaf
      @byaruhaf 4 года назад +2

      Thanks for sharing, didn't know that.

    • @seanallen
      @seanallen  4 года назад +1

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

    • @NotNoAndrew
      @NotNoAndrew 4 года назад

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

  • @ItsJustFil
    @ItsJustFil 4 года назад +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 4 года назад +2

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

  • @RickPlaysStick
    @RickPlaysStick 4 года назад +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.

  • @sajibalaram6978
    @sajibalaram6978 2 месяца назад +1

    Very good explanation

  • @DruideRC
    @DruideRC Год назад +1

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

  • @unlokia
    @unlokia 2 года назад +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 😃

    • @seanallen
      @seanallen  2 года назад

      Glad you enjoyed it!

  • @bibinjacob123
    @bibinjacob123 4 года назад +3

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

  • @AmitBiswastunebox
    @AmitBiswastunebox 4 года назад +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 .

  • @aagamvora3907
    @aagamvora3907 2 года назад

    What an excellent way of teaching.

  • @Natena
    @Natena 2 года назад

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

  • @aaronbarlow7701
    @aaronbarlow7701 3 года назад +1

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

  • @omaralromaithi8078
    @omaralromaithi8078 4 года назад +1

    You are awesome , thanks for sharing knowledge 😀

    • @seanallen
      @seanallen  4 года назад

      Happy to help, Omar!

  • @mattkruckeberg9798
    @mattkruckeberg9798 4 года назад +6

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

  • @nasirmehmood_
    @nasirmehmood_ 2 года назад +1

    Thank you!

  • @cactusdoodle8619
    @cactusdoodle8619 2 года назад

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

  • @PoeheeHeLul
    @PoeheeHeLul 4 года назад +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 4 года назад +1

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

  • @JohnDoe-fe3zw
    @JohnDoe-fe3zw 4 года назад +1

    Another Great video

  • @admrts
    @admrts 2 года назад

    thank you

  • @user-sx6le2fm7k
    @user-sx6le2fm7k 4 года назад +2

    good stuff)

  • @dandiuszielth
    @dandiuszielth 4 года назад

    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?

  • @mattlucas7869
    @mattlucas7869 3 года назад

    this is quality

  • @cobradjc579
    @cobradjc579 4 года назад

    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?

  • @Emily-fo4ty
    @Emily-fo4ty 3 года назад

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

  • @kevindesouza6143
    @kevindesouza6143 Год назад

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

    • @seanallen
      @seanallen  Год назад

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

  • @JessicaxDeSouza
    @JessicaxDeSouza 3 года назад

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

    • @seanallen
      @seanallen  3 года назад

      Nope. SwiftUI is completely different in this regard.

  • @donathmm3881
    @donathmm3881 4 года назад +2

    Forget crashes: Right click and rename 😏

  • @TheAhmadReza
    @TheAhmadReza 4 года назад

    mvvm :(

  • @varunjohnjohn
    @varunjohnjohn 5 месяцев назад

    All this drag and drop is so lame in Xcode

    • @seanallen
      @seanallen  5 месяцев назад

      In the modern world of SwiftUI, this no longer exists

  • @Evan_anish
    @Evan_anish Год назад +1

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

  • @digitalmaus
    @digitalmaus 2 года назад

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