Join Bear Cahill for an in-depth discussion in this video Solution: Update and delete keychain items, part of Advanced iOS Development: Keychain Access.
(upbeat music) … - [Instructor] Okay, so I hope you did great … on your last challenge, don't be sad. … There's plenty more challenges … I'm sure you can think of for yourself. … So let's go over this one. … So first I'm going to write a function … to update an item in keychain. … So I'm going to write static func updateNote. … And that's going to take a text, which is a string, … and the uuid of the item to update. … And then it's going to return a bool, … which will be the return of the call to update keychain. … So we have to code our text as usual and create our query, … but we can just copy those two items … from the store items function, so lines 97 through 102. … And I'll paste those here. … So we already have the generic password, the account, … the label, we're just going to take out the data. … We're not setting it there. … And we're going to put that into the attributes dictionary. … So on line 133, I'll say let attrs as string … any dictionary and create that … as the data that we want to update, …
Author
Released
1/23/2020- Creating keychain queries
- Storing generic passwords
- Retrieving data from the keychain
- Handling search results
- Updating and deleting keychain values
- Working with keychain access groups
Skill Level Advanced
Duration
Views
Related Courses
-
iOS Development: Security
with Károly Nyisztor2h 6m Intermediate -
Biometric Authentication for iOS in Swift
with Bear Cahill43m 54s Intermediate
-
Introduction
-
1. iOS Keychain Services
-
Secure enclave41s
-
Attribute keys and values1m 44s
-
2. Storing Keychain Values
-
Xcode project configuration1m 31s
-
iOS code overview4m 12s
-
Storing a generic password2m 54s
-
Review keychain database2m 6s
-
-
3. Retrieving Data from the Keychain
-
Keychain search concepts4m 36s
-
Keychain search query1m 32s
-
Searching in keychain1m 40s
-
Handling search results3m 24s
-
-
4. Updating and Deleting Keychain Values
-
Update keychain preparation2m 34s
-
-
5. Keychain Sharing
-
Keychain access groups1m 39s
-
Sharing keychain data4m 18s
-
App group data sharing1m 20s
-
Sharing data in app group2m 42s
-
-
6. Building the App Challenges
-
Conclusion
-
Next steps32s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Solution: Update and delete keychain items