Passing Data Between View Controllers (Swift 5, Xcode 12, 2020) - iOS Development

Sdílet
Vložit
  • čas přidán 27. 08. 2024
  • In this video we will learn how to pass data between view controllers in a variety of ways and use cases. We will be working in Swift 5 and Xcode 12. We will also go over pros and cons of each approach with examples.
    💻 Source Code: / iosacademy
    🎥 Subscribe for more: www.youtube.co...
    😎 Like my teaching style? Check out some of my most popular courses! courses.iosaca...
    #swift #passData #viewControllers
    Join this channel to get access to perks, code, groups, and more:
    / @iosacademy
    Join the iOS Academy Community: iosacademy.io/
    ** Get Skillshare free for 2 Months and learn iOS
    www.skillshare...
    ** Manage all your investments from app earnings on Betterment!
    bit.ly/3eBwlI9
    ** Grow your own CZcams tech channel with TubeBuddy:
    www.tubebuddy....

Komentáře • 39

  • @danifonts
    @danifonts Před 3 lety +7

    Never stop doing this videos. You are the best. Your content helps us so much!!!

  • @eric9964
    @eric9964 Před 3 lety +5

    Very informative videos. I’ve seen plenty of the “passing data between view controllers” and no one goes in depth as much showing different use cases and in such an ordered manner. Great job

  • @ricolamoretti4515
    @ricolamoretti4515 Před 3 lety +3

    can't wait!!! I always wanted to know how to use the function in one viewcontroller in another viewcontroller

  • @mkang10
    @mkang10 Před 3 lety +3

    thank you, wish I could hit that like button twice

  • @30guarino
    @30guarino Před 3 lety +2

    This video is definitely a repeat to watch for me....a lot of great content! Thanks again

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

    Just what I needed! Thanks

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

    Great Video! Thank you

    • @iOSAcademy
      @iOSAcademy  Před 3 lety

      Youre welcome. Make sure to like & subscribe!

  • @boggromaful
    @boggromaful Před 3 lety +2

    Great !!! I think that I will have no time to watch this. Will be recording video?

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

    How we will do in MVVM please do that

  • @matejhantabal235
    @matejhantabal235 Před 3 lety

    yeah I'll destroy that like button! I'll click it twice just to be sure!

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

    Great video, thanks :)

  • @shreeniwaaskatta6361
    @shreeniwaaskatta6361 Před 3 lety

    how to pass data viewcontroller to tableview using dictionaries take twotextfields in swift

  • @shreeniwaaskatta6361
    @shreeniwaaskatta6361 Před 3 lety

    i take two textfields one button how to pass data save in userdeaults in tableview

  • @majak1259
    @majak1259 Před 3 lety

    Should you even be passing data in view controllers ? What about separation of concerns?

    • @iOSAcademy
      @iOSAcademy  Před 3 lety

      Subjective. You can pass around models in VCs in my opinion. Using raw data is not advisable

  • @rdkutube
    @rdkutube Před rokem

    Thank you for the video! I watched the other passing data video and am trying to apply the controller init to that code. How would I use storyboard?.instantiateViewController and pass the data during init of that controller?

  • @tongpoo8985
    @tongpoo8985 Před rokem

    need timestamps

  • @jiyadesai4033
    @jiyadesai4033 Před 2 lety

    hi i am using Xcode 13 and i used your code however the tableview does not show up when I run the program. How can I fix it?

  • @BalaaLyf
    @BalaaLyf Před 3 lety

    First data removed after entering the second data what can I do?

  • @BalaaLyf
    @BalaaLyf Před 3 lety

    Pass data :-
    Textfields :- we are entering 5 texts in viewcontroller 1
    Labels :- what we entered texts it il be showing in 5 labels in viewcontroller 2
    Save :- save data
    Again :- second time same repeat above other data.. It can be save it
    Output :- data 1
    Data 2 displayed in labels viewcontroller 2..
    Please sir make it

  • @hulkxp3020
    @hulkxp3020 Před 3 lety

    how can I do this with switches?

  • @run4ever102
    @run4ever102 Před rokem +1

    Love your content! Just wanted to give some love to ya with a comment :) (btw it'd be cool if you'd offer a class, I would definitely sign up)

    • @iOSAcademy
      @iOSAcademy  Před rokem

      Check out iOS Academy+ iosacademy.io/plus

  • @Sela7000
    @Sela7000 Před 3 lety

    what is the way to pass data to xib file?

  • @RockStarFrame
    @RockStarFrame Před rokem

    You're a very master...but this is absolutely not for beginners...

  • @1stplace362
    @1stplace362 Před 2 lety

    why don't you ever share your codes at the end of the video??

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

    Dislike

  • @tibettenballs4962
    @tibettenballs4962 Před 2 lety

    are you a drug addict by any change? if so, we here at TB can help. we message your so hard you wont want to do drugz anymore.