Duration 13:39

Swift: Dictionaries (2020) - Lesson 16

5 877 watched
0
151
Published 24 Apr 2020

UPDATED VERSION HERE: /playlist/PLMRqhzcHGw1YqPh-ggQHJPAUxdHov_uNJ To download the code, projects, worksheets and assets, visit: https://cwc.to/uikit-m2-resources 🚨 SPECIAL CWC+ OFFER FOR YOUTUBE: https://cwc.to/youtubeoffer Now you're going to add another Collection Type to your arsenal. This time it's the Dictionary. While the Array excels at storing ordered collections, the Dictionary shines at retrieving exactly the piece of data you need, when you need it. In this lesson, I'll tell you all about how Dictionaries work and how to use them. 𝗩𝗶𝗱𝗲𝗼 𝗧𝗶𝗺𝗲 𝗦𝘁𝗮𝗺𝗽𝘀: 00:00 Dictionaries in theory 01: 32 Declaring a dictionary 03:44 Declaring an empty dictionary 04:22 Accessing an item 06:22 Checking for an item 08:33 Adding an item 08:59 Updating items 09:18 Removing items 09:58 Arrays vs Dictionaries 12:55 Outro FREE BEGINNER COURSE: ⚡ How to make an app in 14 days - https://cwc.to/14days CWC+ LEARNING PATH: 👩‍💻 The simplest way to learn iOS app development - https://cwc.to/plus CONNECT: 🌍 Website - https://codewithchris.com 😺 GitHub - https://github.com/codewithchris 📸 Instagram - https://www.instagram.com/codewithchris/ 🐦 Twitter - https://twitter.com/codewithchris ABOUT CODEWITHCHRIS: Hi I’m Chris! I’m dedicated to teaching fundamentals about how to make an app. This is important if you’re trying to land an iOS job, be a freelancer, increase or start a business with an app idea. On this channel and my website, you'll find a ton of free resources and tutorials to aid you on your journey to learn iOS development. Many people have learned to code and build apps on their own! https://cwc.to/reviews DID THESE LESSONS HELP YOU? Please let me know! - https://feedback.codewithchris.com

Category

Show more

Comments - 25
  • @
    @ZeueZ4 years ago Love the analogies you give in the videos, it makes it much easier to follow for a beginner like myself. Thanks chris, keep up the great tutorials! 1
  • @
    @kinderspielplanet13224 years ago I already said that indirectly, but learning in your course makes so much fun. 1
  • @
    @Fidziaa4 years ago Thanks chris! You' re honestly saving my life right now, these tutorials are amazing! But you definitely have to straighten the last frame behind you! Haha. 1
  • @
    @DewottEva4 years ago I have a couple of questions about dictionaries
    can you use append to add data to a dictionary or can you only use the method shown in the video? also, is it impossible to have a key remain in the dictionary with a nil value?
    i love your videos by the way! They are even great for someone who is new to swift and xcode but not programming
    .
    ...Expand
    1
  • @
    @fractilians4 years ago at .the capital I in Finding - Flinding made me think of the word floundering. ..hehe.maybe it's my subconscious trying to tell me that I am floundering to understand these concepts.hehe.Great video and have to agree that this was way easier to grasp then Options were.not that I have a grasp yet.but rewatching definitely helps.:) .. ...Expand 1
  • @
    @joseph6452014 years ago Thanks again for another great video. Besides the worksheets are there any websites you recommend with basic xcode exercises? 1
  • @
    @gauravpande3 years ago Anyone can help me understand this. Thanks.
    an item" is about checking if theholds any there will be a value. There can' t be any empty key, right? Then why are we writing those code of lines of if-statement?
    like for even this: " " the output will show an empty string value.
    for [string: int]gt; i can' t keep the value empty, it will show me error
    .
    ...Expand
  • @
    @mtpikachu19264 years ago lol at I was pretending to telegraph to you that for the key "abc" the value should be "def" :) 2
  • @
    @junaid99577820274 years ago To be honest, this was comparatively easier to understand then: 1