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
@ZeueZمنذ 4 سنوات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
@
@kinderspielplanet1322منذ 4 سنواتI already said that indirectly, but learning in your course makes so much fun 1
@
@Fidziaaمنذ 4 سنوات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
@
@DewottEvaمنذ 4 سنوات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? id="hidden4" class="buttons"> 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. ....وسعت1
@
@fractiliansمنذ 4 سنوات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.:) ....وسعت1
@
@joseph645201منذ 4 سنواتThanks again for another great video. Besides the worksheets are there any websites you recommend with basic Xcode exercises? 1
@
@gauravpandeمنذ 3 سنواتAnyone can help me understand this. Thanks. "Accessing an item" is about checking if the "key" holds any "value", id="hidden6" class="buttons"> right? But if there is a key then 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 ["Key" : " "], the output will show an empty string value. For [String : Int] ] ---> ["number": ] , I can't keep the value empty, it will show me error. ....وسعت
@
@mtpikachu1926منذ 4 سنواتlol at I was pretending to telegraph to you that for the key "abc" the value should be "def" :) 2
@
@junaid9957782027منذ 4 سنواتTo be honest, this was comparatively easier to understand then "optionals" :) 1
مقاطع الفيديو ذات الصلة على Swift: Dictionaries (2020) - Lesson 16:
Can you use append to add data to a dictionary or can you only use the method shown in the video? id="hidden4" class="buttons">
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. ....وسعت 1
"Accessing an item" is about checking if the "key" holds any "value", id="hidden6" class="buttons"> right? But if there is a key then 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 ["Key" : " "], the output will show an empty string value.
For [String : Int] ] ---> ["number": ] , I can't keep the value empty, it will show me error. ....وسعت