Whatever data is to be stored is likely in memory by using a class, struct, or similar. Based on the model, these values can be gathered and passed around. Learn about a typical approach to a data's model for considering storage in the keychain. Understanding the relationship to an app's model and the keychain is helpful to keep code clean and maintainable.
- [Instructor] As I mentioned, our project is based … on a template for a master detail flow. … So, we have a table view that navigates … down to a detail view. … The detail view is where the user can enter and edit notes. … So, let's kind of go through this code. … The app delegate is untouched. … Nothing's changed there. … So, let's start with the master view controller. … So, we have a property to the detail view controller, … an array of Strings that are the notes. … We have a user login which is a struct, … if we navigate to that, that just has a username … and password for a user. … And we have a selected index path, … and we use this for a couple of reasons … that we'll see in just a second. … The view did load is standard. … The view will appear is, as well. … In the view did appear, we're going to check to see … if the user's logged in. … Now, this is in an extension of the UI view controller. … So, if we go to that, we'll see that it checks … user defaults for the logged in key. …
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: iOS code overview